Merge pull request #2 from vilarion/1.4

Fix color conversion bug introduced in bd08f8ce
Merge pull request #239 from mkaring/1.4

Fix color conversion bug introduced in bd08f8ce