RF Use nibabel write_geometry function