             dict["buyPrice"] = buyPrice
         }
         
-        if let image = image?.dictionary() {
-            dict["image"] = image
-        }
-        
         return dict
     }
 }
 
-extension MSImage {
+extension MSLocalImage {
     public func dictionary() -> Dictionary<String, Any> {
         var dict = [String: Any]()
     
-        dict["title"] = title
-        dict["filename"] = filename
-        dict["size"] = size
-        dict["miniatureUrl"] = miniatureUrl.absoluteString
-        dict["tinyUrl"] = tinyUrl?.absoluteString ?? ""
+        dict["filename"] = title
+        dict["content"] = UIImageJPEGRepresentation(image, 1)?.base64EncodedString() ?? NSNull()
         
         return dict
     }

            dict["buyPrice"] = buyPrice
        }
        
        if let image = image?.dictionary() {
            dict["image"] = image
        }
        

//

import Foundation
import UIKit

extension MSAssortment {
    public func dictionary(metaOnly: Bool = true) -> Dictionary<String, Any> {
