Template Adaptation for Face Verification and Identification