     func page(_ index: Int) -> CGImageRepBase
     
     var cgImage: CGImage? { get }
+    
+    func auxiliaryDataInfo(_ type: String) -> [String : AnyObject]?
 }
 
 public struct CGImageRep {

            return cache.image
        }
    }
}

extension CGImageRep {
    

    var cgImage: CGImage? {
        return CGImageSourceCreateImageAtIndex(source, index, nil)
    }
    
    func auxiliaryDataInfo(_ type: String) -> [String : AnyObject]? {
        guard #available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *) else { return nil }
        return CGImageSourceCopyAuxiliaryDataInfoAtIndex(source, index, type as CFString) as? [String : AnyObject]
    }
}

#endif
