Fixed HEX parsing and writing

Fixed HEX parsing and writing
Fixed cmyk->rgb dumb conversion