BUG: Updated BRAINSTools for template.py bug fixes