Fix svg element size

Fix svg size error in FF
Improve getSize to default to .getBoundingClientRect()