added geolocation function for photos