Parse color and alpha values more loosely

Fixes #28