fix image error in template