Added the start of the image cropping handler