fixup 43c54fc75a09d60f8feeb83205a3a02b519a7025, save png segfaults

Our filesystem functions are for reading, not writing.