added cropping, a preview of the captured image, and a button for taking a snapshot and deleting it