SVG detection improved