Add tests for inline images.
Factor out output_body_pdf.
Handle checking for attachments used even if body is not extracted.
Bump version.