add main photo function + lat/lon to thumbs