Renamed files of ndimage to mriimage
changed ndimage to mrimage
fixed ordering in nifti image pixel writing