Allow images to be inserted into templates