  * `getImageCells` and `loadImageCell`
  */
 open class ImageFeedCollectionViewController: FeedCollectionViewController, IDMPhotoDataSource, IDMPhotoBrowserDelegate {
+    private var browser:IDMPhotoBrowser?
     open func getImageReuseIdentifier(cell: ImageCellData) -> String {
         preconditionFailure("getImageReuseIdentifier must be overridden")
     }

    
    open func getSingleImageView(cell:ImageCellData) -> SingleImageView {
        return SingleImageView(cell: cell)
    }

    // Override this to receive alerts when an image fails to load while in

    }
    
    override open func didSelectCell(index:Int, cell:CellData) {
        browser = IDMPhotoBrowser(dataSource: self)
        browser?.setInitialPageIndex(UInt(index))
        browser?.delegate = self
        self.present(browser!, animated: true, completion: {})
    }

    // MARK: IDMPhotoDataSource methods
    public func getPhotos() -> [Any]! {
        return super.getCurrentCells()
