Fixed image export for DOCX, RTF, slides, etc.

Still broken for PDF.

See #399.
Fixed images in PDF export.

See #399, #353.