fix image format output