fix image edit bug