Add ajax function to add photo locations from front-end.