Deal with the change from 4D to 3D in the headers

I manipulate the 4D header so it can be used to save 3D files