add crop FaceDetector function and test it in main class