add image attachment template, prev-next styles