Handle nifti flip y problem