Fix minor PNG decoder bug
Support paletted PNGs (just decoder)
Make some things const