Best individual template selection from deformation tensor minimization