Fixed color type conversion
Merge pull request #294 from Golden-Lion/master

Repaired -W option