     let cameraButton : UIButton = {
         let button = UIButton()
         button.translatesAutoresizingMaskIntoConstraints = false
+        button.enabled = false
         button.setImage(UIImage(named: "cameraButton",
             inBundle: CameraGlobals.shared.bundle,
             compatibleWithTraitCollection: nil),

        guard let device = cameraView.device else {
            return
        }
        
        let mode = device.flashMode
        let imageName = flashImage(mode)
        let image = UIImage(named: imageName, inBundle: NSBundle(forClass: CameraViewController.self), compatibleWithTraitCollection: nil)
        
        flashButton.setImage(image, forState: .Normal)
    }

        permissionsView.configureInView(view, title: title, descriptiom: desc, completion: close)
    }
    
    /**
     * This method will be called when the user
     * try to take the picture.
     * It will lock any button while the shot is
     * taken, then, realease the buttons and save
     * the picture on the device.
     */
    internal func capturePhoto() {
        guard let output = cameraView.imageOutput,
            connection = output.connectionWithMediaType(AVMediaTypeVideo) else {
            return
        }
        
        if connection.enabled {
            toggleButtons(true)
            cameraView.capturePhoto { image in
                guard let image = image else {
                    self.toggleButtons(true)
                    return
                }
                self.saveImage(image)
