Using a camera to capture pictures