Add a class describing the colour type
Fix bugs with alpha channel setting and reading