Sets json content type when requested to view photos
Adds json response data for view Photos