         super.viewDidLoad()
 
         
-        
+    
         let devices = AVCaptureDevice.devices().filter{ ($0 as AnyObject).hasMediaType(AVMediaTypeVideo) && ($0 as AnyObject).position == AVCaptureDevicePosition.back }
         captureDevice = devices.first as? AVCaptureDevice
         if (captureDevice?.isFlashModeSupported(.auto))!{

        cameraPreview.layer.addSublayer(previewLayer!)
        cameraPreview.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(saveToCamera)))
        
        
        
        let btnTakePicture = UIButton()

        btnFlashMode.setImage(UIImage(named: "Camera.bundle/btn_camera_flash_auto"), for: .normal)
        
        btnFlashMode.bounds = CGRect(x: 0, y: 0, width: 40, height: 40)
        btnFlashMode.center = CGPoint(x: self.view.frame.width-btnFlashMode.bounds.width/2-25, y: btnFlashMode.bounds.height/2 + 25)
        btnFlashMode.addTarget(self, action: #selector(btnFlashModeAction), for: .touchUpInside)
        
        
