Add content_id to attachments.