function to compare locations. if location is the same don't add a new location and allow the existing location to have multiple images