Add a template for image attachment pages using figure element