Support scaling with a <g> tag.