Added inverse color index for speed