Add LegendGraphic support for Rules in SLDs

This will support a GeoServer pull request that we hope to submit which adds LegendGraphicSupport to BufferedImageLegendGraphicBuilder.
Adds rendering of legend graphics that are instances of ExternalGraphic. (To fully implement the SLD spec, support for Mark objects would also have to be added, but hopefully this is good enough to merge.)