correct rgb(..) whitespace handling + other tweaks