Detect SVG images

If any human sees this, I was able to get this working using the server-side methods I discussed here: