 
     override func viewWillTransitionToSize(size: CGSize, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator) {
         super.viewWillTransitionToSize(size, withTransitionCoordinator: coordinator)
-        self.layout.transistionToOrientation(UIView.viewOrientationForSize(size), atSize: size)
+        self.layout.transitionToOrientation(UIView.viewOrientationForSize(size), atSize: size)
         self.refreshHistory(self.layout.thumbnailCount)
     }
 

    private func setupForOrientation(orientation: UIInterfaceOrientation) {
        if orientation.isLandscape {
            thumbnailCols = 5
        } else if UIScreen.mainScreen().traitCollection.horizontalSizeClass == .Compact {
            thumbnailCols = 3
        } else {
            thumbnailCols = 4
        }
    }


        return thumbnailRows * thumbnailCols
    }

    private var width: CGFloat
    private var height: CGFloat

    // The width and height of the thumbnail here are the width and height of the tile itself, not the image inside the tile.
    private var thumbnailWidth: CGFloat {
