display the pictures in the template