Zaslat záznam emailem: A Bayesian Generative Model for Surface Template Estimation