Added functionality for uploading cropped image