         return self.originalData.map { SVGContext.ImageTableKey($0) } ?? SVGContext.ImageTableKey(AnyImage(imageRep: self, fileBacked: true))
     }
     
-    fileprivate func encode(using storageType: MediaType, properties: Any) -> String? {
+    fileprivate func encode(using storageType: MediaType, resolution: Resolution, properties: Any) -> String? {
         guard let mediaType = self.mediaType?.media_type_string else { return nil }
         guard let properties = properties as? [ImageRep.PropertyKey : Any] else { return nil }
         guard let data = self.originalData else { return AnyImage(imageRep: self, fileBacked: true).encode(using: storageType, properties: properties) }

    
    var imageTableKey: SVGContext.ImageTableKey? { get }
    
    func encode(using storageType: MediaType, properties: Any) -> String?
}

extension MediaType {

        return SVGContext.ImageTableKey(self)
    }
    
    fileprivate func encode(using storageType: MediaType, resolution: Resolution, properties: Any) -> String? {
        guard let mediaType = storageType.media_type_string else { return nil }
        guard let properties = properties as? [ImageRep.PropertyKey : Any] else { return nil }
        guard let data = self.representation(using: storageType, properties: properties) else { return nil }
