fix image directive