Update function of FaceDetection