Implemented taking a photo on button click