created a button to take a picture