fully handle palette by reading content from file and massaging it from 8-bit to 6-bit