Fixing colors for HSI during text color inversion and change of resolution