     super.showHistory()
 
     if let image = visibleViewController.screenshotFromWindow(scale: SAHistoryNavigationViewController.kImageScale) {
-      screenshotImages += [image]
-    }
-
-    historyViewController.images = screenshotImages
+      screenshots += [ScreenShot(image: image, navigationItem: visibleViewController.navigationItem)]
+    }
+
+    historyViewController.images = screenshots.map() { $0.image }
     historyViewController.currentIndex = viewControllers.count - 1
     historyViewController.reload()
     historyViewController.view.alpha = 1.0


extension SAHistoryNavigationViewController: UINavigationBarDelegate {
  public func navigationBar(navigationBar: UINavigationBar, didPopItem item: UINavigationItem) {
    screenshotImages.removeLast()
  }
}



      if let viewController = viewController as? UIViewController {
        if let image = viewController.screenshotFromWindow(scale: SAHistoryNavigationViewController.kImageScale) {
          screenshots += [ScreenShot(image: image, navigationItem: viewController.navigationItem)]
        }
      }
    }
