def crop(img, box=None):
    """
    Cut a rectangular region from this image. The box is a
    4-tuple defining the left, upper, right, and lower pixel
    coordinate.
    """
    return img.crop(box)