detection and tracking code - up to adding face detection for small face tilts