support SVG with viewbox only
reuse getViewboxSize for getRatio function