Fix colourspace conversion