Fix for #80 (with tests)
Clip colors > 255