fix image deletion
avoid null privacy in updrade