Functionality for Image cropping added.