using a template for the photos view and adjusting code formatting to use double quotes