Automation links image swap onclick

When contacts click automation image link in email the image is changed (onclick). How can this be done?

What would be required unfortunately, is stripped out of emails. It’s not that it can’t be done but that it would be removed from the email by IS.