Split gradient defs and cmap rectangles - not yet sorted how to inject the defs