changed photo controller to take coordinates from photos