fix image and template