Add option to extract part of the image. Supports clipping to docuement bounds