function to standardize the orientation of the nifti