     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
     }

        collectionView?.showsHorizontalScrollIndicator = false
        collectionView?.pagingEnabled = true
        collectionView?.bounces =  false
    }
}
    }

   
    override func viewDidLayoutSubviews()
    {
        super.viewDidLayoutSubviews()
        let indexpath = NSIndexPath(forRow:index!, inSection: 0)
        collectionV.scrollToItemAtIndexPath(indexpath, atScrollPosition: UICollectionViewScrollPosition.CenteredHorizontally, animated: false)
    }
  
    
    override func viewDidLoad() {
        super.viewDidLoad()
