add #content_id method to Attachment