Truncate output files created in store_png

Use io::Truncate instead of io::Open for file mode.

Related to https://github.com/mozilla/servo/issues/1178.