         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)

    private var pickerButton : UIButton!
    private var closeButton : UIButton!
    private let buttonMargin : CGFloat = 12

    deinit {
        captureManager.stop(nil)

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

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