Capturing pictures using a button