fix image serialzation option