ENH: Speed up template building with ANTs.