Yeah, attachments in messages are a special case in the activity feed as they are shown regardless of whether or not they appear in the message body. You could remove them entirely with template edits if you really wanted to, but the context needed to hide attachments in spoilers is not readily available.