Tweak the RGB regexp.
Ignore TypeError.
Clean up Line class.