 
     func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
 
-        let cell = collectionView.dequeueReusableCellWithReuseIdentifier(instagramMediaCellIdentifier, forIndexPath: indexPath) as! InstagramMediaCell
+        let cell: InstagramMediaCell = collectionView.dequeueReusableCell(forIndexPath: indexPath)
 
         let media = instagramMedias[indexPath.item]
 


    @IBOutlet private weak var instagramCollectionView: UICollectionView!

    private let instagramMediaCellIdentifier = "InstagramMediaCell"

    private lazy var collectionViewWidth: CGFloat = {
        return CGRectGetWidth(self.instagramCollectionView.bounds)
    }()

        shareButton.enabled = false
        navigationItem.rightBarButtonItem = shareButton

        instagramCollectionView.registerNibOf(InstagramMediaCell)

        if let gestures = navigationController?.view.gestureRecognizers {
            for recognizer in gestures {
