Refactored facedetect methods