At the moment only saving pixelsize and unit but it should be super simple to do (I actually have done this in 2 lines of code but not tested yet)