         let contentMode = contentMode ?? AssetManagerConst.assetMode
         let size = size ?? AssetManagerConst.assetSize
         
-        PHCachingImageManager.default().requestImage(for: asset.originalAsset, targetSize: size.toPixel(), contentMode: contentMode, options: options, resultHandler: { (image, info) in
+        TTACachingImageManager.shared?.manager.requestImage(for: asset.originalAsset, targetSize: size.toPixel(), contentMode: contentMode, options: options, resultHandler: { (image, info) in
             if let isInCloud = info?[PHImageResultIsInCloudKey] as? Bool
                 , image == nil && isInCloud {
                 options.isNetworkAccessAllowed = true

                if let cancelled = info?[PHImageCancelledKey] as? Bool, cancelled {
                    return
                }
                resultHandler(fixOrientation(aImage: image), info)
            }
        })
    }
}

// MARK: - Caching

extension TTAImagePickerManager {
    
    static func startCachingImages(for assets: [PHAsset], targetSize: CGSize?, contentMode: PHImageContentMode?, options: PHImageRequestOptions?) {
        guard let manager = PHCachingImageManager.default() as? PHCachingImageManager else { return }
        let options = options ?? AssetManagerConst.assetRequestOptions
        let contentMode = contentMode ?? AssetManagerConst.assetMode
        let targetSize = targetSize ?? AssetManagerConst.assetSize
        manager.startCachingImages(for: assets, targetSize: targetSize.toPixel(), contentMode: contentMode, options: options)
    }
    
    static func stopCachingImages(for assets: [PHAsset], targetSize: CGSize?, contentMode: PHImageContentMode?, options: PHImageRequestOptions?) {
        guard let manager = PHCachingImageManager.default() as? PHCachingImageManager else { return }
        let options = options ?? AssetManagerConst.assetRequestOptions
        let contentMode = contentMode ?? AssetManagerConst.assetMode
        let targetSize = targetSize ?? AssetManagerConst.assetSize
        manager.stopCachingImages(for: assets, targetSize: targetSize.toPixel(), contentMode: contentMode, options: options)
    }
}


        
        private static func _defaultOptions() -> PHImageRequestOptions {
            let options = PHImageRequestOptions()
            options.resizeMode = .fast
            return options
        }
    }
