Set the attachment data in the attachments property when using load() method.

This ensures that methods such as get_filepath() work correctly.