More abstracted support for gradient/image stroke.