Extracts a region of the image.