Loop in the template, reading an array of photo objects.