Add experimental support for base64 encoded images in PDF export, closes #359