retrieving location data, saving image file as jpeg