Fix issue with color types. (fixes #43)