Update 1

Added parameter defaults for use on platforms that don't have stdin.
Replaced image file code with platform agnostic png saver from
http://nothings.org/stb/stb_image_write.h.