takes a photo every 10 seconds