         button.imageEdgeInsets = insets
     }
 
-    private func updateWidgetsToOrientation(orientation: UIInterfaceOrientation) {
+    private func updateWidgetsToOrientation() {
         closeButton.layer.anchorPoint = CGPointMake(0.5, 0.5)
         flashButton.layer.anchorPoint = CGPointMake(0.5, 0.5)
         pickerButton.layer.anchorPoint = CGPointMake(0.5, 0.5)

            flashPosition = CGPointMake(buttonMargin, buttonMargin)
        }
        let animations = {
            self.pickerButton.rotateToDeviceOrientation()
            self.pickerButton.frame.origin = pickerPosition
            self.flashButton.rotateToDeviceOrientation()
            self.flashButton.frame.origin = flashPosition
            self.closeButton.rotateToDeviceOrientation()

            for cell in self.collectionView.visibleCells() {
                cell.contentView.rotateToDeviceOrientation()
            }
        }
        UIView.animateWithDuration(0.25, animations: animations)

            switch UIDevice.currentDevice().orientation {
            case .FaceDown, .FaceUp, .Unknown:
                ()
            case .LandscapeLeft, .LandscapeRight, .Portrait, .PortraitUpsideDown:
                self.orientation = UIDevice.currentDevice().orientation
                self.updateWidgetsToOrientation()
            }
        }
    }
