Added 8-bit and 256-bit color support