 
     let profile: Profile
 
-    override func viewWillTransitionToSize(size: CGSize, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator) {
-        super.viewWillTransitionToSize(size, withTransitionCoordinator: coordinator)
-        self.layout.transitionToOrientation(UIView.viewOrientationForSize(size), atSize: size)
-        self.refreshHistory(self.layout.thumbnailCount)
-    }
-
-    override func supportedInterfaceOrientations() -> Int {
-        return Int(UIInterfaceOrientationMask.AllButUpsideDown.rawValue)
-    }
-
     init(profile: Profile) {
         self.profile = profile
         super.init(nibName: nil, bundle: nil)


    required init(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    override func viewDidLoad() {

    override init() {
        width = 0; height = 0
        super.init()
    }

    required init(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    private func setupForOrientation(orientation: UIInterfaceOrientation, atSize size: CGSize) {
        if orientation.isLandscape {
            thumbnailCols = 5
        } else if UIScreen.mainScreen().traitCollection.userInterfaceIdiom == .Pad  {
