Fixes to revpe_distcorr script

Fixes issue #44.
Script will now accept reverse phase-encode input images that have a trailing unary axis.
Also fixed error in automatic cropping of input images with non-even spatial axis dimensions.