Vary foreignObjects according to scale