def METHOD_NAME(obj, pos, image):
    """Calculate a good bounds to use for this object based on its position.
    Also return the offset to use when drawing onto the postage stamp.
    """
    obj_on_image = image.wcs.toImage(obj, image_pos=pos)
    N = obj_on_image.getGoodImageSize(1.0)
    xmin = int(math.floor(pos.x) - N/2)
    xmax = int(math.ceil(pos.x) + N/2)
    ymin = int(math.floor(pos.y) - N/2)
    ymax = int(math.ceil(pos.y) + N/2)
    bounds = galsim.BoundsI(xmin, xmax, ymin, ymax)
    bounds = bounds & image.bounds
    offset = pos - bounds.true_center
    return bounds, offset