fix image output pdf error