Added framework for 8/24 bit colour