Bayesian Estimation of Templates in Computational Anatomy