added template tag to render a list of pictures