added auto threshold with score at percentile and store nifti images as well