Cancel photo

Added a way (maybe) to cancel the photo taking process and return to
the activity if the user is taking a photo when we want to activate
something.