Update nibabel/analyze.py

When creating a Nifti1Image and setting its slope and inter, this information is not saved to file.
Debugging the source code I noticed that this information is not used in the to_file_map method (analyze.py).
I modified the code to do just that.