Computer supported pre-operative planning of craniofacial surgery: from patient to template