Got rudimentary binary --> PNG writing working.