def get_containing_quad(minx, miny, maxx, maxy):
    """Get Quadrangle within image bounds
    """
    minx = minx + abs(minx) % 0.125
    miny = miny - miny % 0.125 + 0.125
    maxx = maxx + abs(maxx) % 0.125 - 0.125
    maxy = maxy - maxy % 0.125
    return [minx, miny, maxx, maxy]
