                 self.cameraButton.enabled = true
                 self.closeButton.enabled = true
                 self.swapButton.enabled = true
+                self.libraryButton.enabled = true
                 self.showNoPermissionsView(true)
             }
             .save()

        flashButton.action = toggleFlash
        
        checkPermissions()
        rotate()
        
        cameraView.configureFocus()
    }
    
    public override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
        return .Portrait
    }
    
    public override func viewWillAppear(animated: Bool) {

    
    internal func cameraReady() {
        cameraButton.enabled = true
    }

    private func checkPermissions() {
