fix rgb-yiq conversions