Take a look at the spotlightHighlight(_:_:_:), colorHighlight(_:_:_:), and blur(_:_:_:) functions in DepthImageFilters.swift from the final project.
Each of these functions converts a CIImage to a CGImage to a UIImage. You should be able to do the same using the CIImage from the depth map to create a UIImage that can be saved.