changed getRegionCoordinates to take photoId instead of regionId