     }
     
     func image(_ url: URL, type: ImageCacheEntityType, callback: @escaping (_ image: UIImage?)->Void) {
+        guard let bitmapCache = bitmapCache else { callback(nil); return }
+        
         let entity = ImageEntity(url: url)
         let format = type.rawValue
         if !bitmapCache.imageExists(for: entity, withFormatName: format) {

    
    fileprivate let ImageFormatFrameDevice = "com.brave.imageFormatFrameDevice"
    
    fileprivate var bitmapCache: FICImageCache!
    
    fileprivate var portraitSize: CGSize {
        get {

    }
    
    func remove(_ url: URL, type: ImageCacheEntityType) {
        guard let bitmapCache = bitmapCache else { return }
        
        let entity = ImageEntity(url: url)
        let format = type.rawValue
        if bitmapCache.imageExists(for: entity, withFormatName: format) {
