migrate color space to XImage