Adding trackPupil function based on template matching.