fixed cropping of image.