fixes center calculation of SVGs