                 
                 self.relayout(layout)
                 
-                for (position, image) in self.privateObjectInfo.imageMetaData {
+                for positionMetaData in newMetaData.imagesMetaData.positionMetaDatas {
                     
-                    self.setImage(image, forPosition: position)
+                    var positionView:GZPositionEditView = self.positionView(forIdentifier: positionMetaData.identifier) as GZPositionEditView
+                    positionView.metaData = positionMetaData
                     
                 }
+                
+//                for (position, image) in self.privateObjectInfo.imageMetaData {
+//                    
+//                    self.setImage(image, forPosition: position)
+//                    
+//                }
             }
             
         }

let GZImageLayoutViewMetaDataImagesKey = "GZImageLayoutViewMetaDataImagesKey"


struct GZLayoutViewImagesMetaData {
    
    private var content:[String:UIImage]
    
    var numberOfImages:Int{
        return self.content.count
    }
    
    var identifiers:[String]{
        return content.keys.array
    }
    
    func image(forPosition identifier:String)->UIImage!{
        return self.content[identifier]
    }
    
    func isExist(forPosition identifier:String)->Bool{
        return self.content[identifier] != nil
    }
    

}

struct GZLayoutViewMetaData{
    
    private var content:[NSObject:AnyObject]
    
    var layout:GZLayout{
        return self.content[GZImageLayoutViewMetaDataLayoutKey] as GZLayout
    }
    
    var imagesMetaData:GZLayoutViewImagesMetaData{
        var metaDataContent = self.content[GZImageLayoutViewMetaDataImagesKey] as [String:UIImage]
        return GZLayoutViewImagesMetaData(content: metaDataContent)
    }
    
    var numerOfPositions:Int{
        return self.layout.positions.count
    }
    
}

        }
    }
    
    var positionViews:[String:GZPositionEditView] = [:]
    
    var cameraView:GZCameraView{
        return self.highlighView.cameraView
