Added function to rank photos
Changed order of lat/lng