fix image file format