crop a photo in the gallery