Fixed #68

Now checks to ensure we're only dealing with attachments to avoid
conflict with other plugins.