Change the way to detect SVG support

Wrong way to detect SVG support