     func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
         let cell = collectionView.dequeueReusableCellWithReuseIdentifier(PhotoBrowserControllerIdentifer, forIndexPath: indexPath) as! PhotoBrowserCell
         cell.photoBrowserCellDelegate = self
-        cell.imageURL = urls![self.index!]
+        cell.imageURL = urls![indexPath.row]
         cell.backgroundColor = UIColor.blackColor()
         return cell
     }

    }

   
    
    override func viewDidLoad() {
        super.viewDidLoad()

        closeBtn.addTarget(self, action: "dismissController", forControlEvents: UIControlEvents.TouchUpInside)
        saveBtn.addTarget(self, action: "save", forControlEvents: UIControlEvents.TouchUpInside)
        collectionV.registerClass(PhotoBrowserCell.self, forCellWithReuseIdentifier: PhotoBrowserControllerIdentifer)
        
    }

    func setupUI(){
