SVGImage myImage = new SVGImage(svg) {
protected void onAttach() {
OMSVGRect viewBox = svg.getViewBox().getBaseVal();
if (viewBox.getWidth() == 0 || viewBox.getHeight() == 0) {
OMSVGRect bbox = svg.getBBox();
bbox.assignTo(viewBox);
}
svg.getStyle().setWidth(300, Unit.PX);
svg.getStyle().setHeight(130, Unit.PX);
super.onAttach();
}