Modified StyleShapePainter to allow for rescaled legend graphics

This modification is related to this GeoServer Pull request: https://github.com/geoserver/geoserver/pull/173