made more robust to odd recon image sizes
Added num timepoints option
Made robust against empty grad dir files