use a template for the photo index