Put extension switch back in, use mimetypes module and manually add SVG since it's oddly lacking.