Got rudimentary binary --> PNG encoding working.