     private func comparePictures(picturesMap:[PictureId:FDatabaseModelPicture])
     {
         var items:[PictureId:MPicturesItem] = [:]
+        var references:[MPicturesItemReference] = []
         let picturesIds:[PictureId] = Array(picturesMap.keys)
         
         for pictureId:PictureId in picturesIds

                    let newItem:MPicturesItem = MPicturesItem(firebasePicture:firebasePicture)
                    items[pictureId] = newItem
                }
            }
        }
        
        self.items = items
        picturesLoaded()
    }
    

            else
            {
                self.items = [:]
                self.references = []
                self.picturesLoaded()
                
                return
