bug fix image save