         else
         if photos > 1 {
             if let d = delegate {
-                title = d.titleForPhotoAtIndex(currentPageIndex, photoBrowser: self)
+                title = d.titleForPhotoAtIndex(index: currentPageIndex, photoBrowser: self)
             }
             
             if nil == title {

        
        // Calculate current page
        let visibleBounds = pagingScrollView.bounds
        var index = Int(floorf(Float(CGRectGetMidX(visibleBounds) / CGRectGetWidth(visibleBounds))))
        if index < 0 {
            index = 0
        }

        var captionView: CaptionView?
        
        if let d = delegate {
            captionView = d.captionViewForPhotoAtIndex(index: index, photoBrowser: self)
            
            if let p = photoAtIndex(index: index), nil == captionView {
                if p.caption.characters.count > 0 {
                    captionView = CaptionView(photo: p)
                }
