Allow client-side previews of SVG images. Closes #2912
Merge branch 'master' into gh-pages