fix image delete issue