fix image type