Fix LZ threshold score for 1-byte/pixel images (must be 4x larger naturally 16->64)
Fix mask palette color write, and implement unpacking for small palette