Ghetto fork of Robert Eisele's PNG encoding library for Javascript