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

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

extension MSImage {
    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 ?? ""
        
        return dict
    }

//

import Foundation
import UIKit

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