improved line shaper - now properly creates gradients across multiple lines and picks up pscale attribute if set