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

//

import Foundation

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

            dict["buyPrice"] = buyPrice
        }
        
        return dict
    }
}

extension MSLocalImage {
    public func dictionary() -> Dictionary<String, Any> {
        var dict = [String: Any]()
    
        dict["filename"] = title
        dict["content"] = UIImageJPEGRepresentation(image, 1)?.base64EncodedString() ?? NSNull()
        
        return dict
    }
