[#4988] gracefully handle attachments that are partial images
3 files changed