Adding possibility of cropping the image to the specified rectangle on the source image.