I knew writing that as a test would be worth it.
* added tests/iconwriter.js, which writes icons with formats 0-7. Authors notes: I am aware that texture format 1 may work the same as texture format 3. I am waiting on the tests provided by iconwriter.js to verify the functionality.