Some version of Unity, like 2019, have different rules for UI Handlers. Add a Button component to your image and use the “OnClick” event attached instead.