REF: changed number of iterations for affine
OPT: changed flag -t for -p to specify path of template
BUG: fixed bug related to non INT subsampled labels