added 256 colour support