fix image formatting