native image reading/writing on OSX/64bit