photo controller index action now returns all photos as json