Add support for attachments in YamlLoader