fix bug: fix image save bug