basic program that takes a picture on button press