def crop_picture(pic, x1, y1, x2, y2):
    """Crop Picture pic so that only pixels inside the rectangular region
    with upper-left coordinates (x1, y1) and lower-right coordinates (x2, y2)
    remain.  The new upper-left coordinate is (0, 0)."""
    pic.crop(x1, y1, x2, y2)
