Implement Photo upload function on Back End