Created thread for facedetect - still crashes, in progress of fixing