adjusting viewbox intelligently