     public var didFinishCapturingImage: ((image: UIImage) -> Void)?
     
     public var cameraOverlayView: UIView?
-    public var flashModel:AVCaptureFlashMode = .Auto {
+    public var flashModel:AVCaptureFlashMode! {
         didSet {
             self.updateFlashButton()
             self.updateFlashMode()
+            self.updateFlashModelToUserDefautls(self.flashModel)
         }
     }
     

    private func setupCurrentDevice() {
        if let currentDevice = self.currentDevice {
            
            if currentDevice.isFlashModeSupported(self.flashModel) {
                self.flashButton.hidden = false
                self.updateFlashMode()
            } else {
                self.flashButton.hidden = true
            }

            }
        }
        
        if self.currentDevice == nil || self.currentDevice?.flashAvailable == false {
            return
        }
        
