added paletted png save support (transparency needs work, currently locked to 4 levels)