     fileprivate var device: AVCaptureDevice?
     fileprivate var videoInput: AVCaptureDeviceInput?
     fileprivate var imageOutput: AVCaptureStillImageOutput?
+    fileprivate var videoLayer: AVCaptureVideoPreviewLayer?
+
     fileprivate var focusView: UIView?
 
     fileprivate var flashOffImage: UIImage?

            
            session.addOutput(imageOutput)
            
            let videoLayer = AVCaptureVideoPreviewLayer(session: session)
            videoLayer?.frame = self.previewViewContainer.bounds
            videoLayer?.videoGravity = AVLayerVideoGravityResizeAspectFill
            

                 
                        videoInput = try AVCaptureDeviceInput(device: device)
                        session.addInput(videoInput)
                    }
                }

            }
            
            session?.commitConfiguration()
            
        } catch {
            
