PNG re-work: paletted file writes