adapt template to new Image