Add foreground color option; refactor color parsing