switched scaling over to floating calculations in svg stuff