template for photos with two way databinding on /api/photos