uploading image in MongoDB and cropping image