getSvgDimensions d'ont get correct dimensions with firefox. Retuned to old code