fix image export error