Allow client-side previews of SVG images. Closes #2912