script to capture image with gphoto2