Added support for loading pdfs in img tags by replacing them with a canvas. As
it stands svgs are better because they'll stay vector graphics.