Copy gradient pen perf improvement to path gradient pen