ColorFactory to fix #48 

Fixes #48