add image support to tempates