UI Image change image on click not working

I trying to create an ui image that will change pictures when click, but its not working. It attached the script to script holder then attach to the UI Image itself thru event trigger pointer click
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

    public class Laptop : MonoBehaviour
    {
        public int counter;
        public Sprite coffin;
        public Sprite cat;
        public Sprite teams;
       
        public void laptopchange()
        {
            switch (counter)
            {
    
                case 0:
                    Debug.Log("working");
                    GetComponent<Image>().sprite = coffin;
                    counter++; //increase count so it gets higher and switches to different sprite
                    break;
                case 1:
                    GetComponent<Image>().sprite = teams;
                    counter++;
                    break;
                case 2:
                    GetComponent<Image>().sprite = cat;
                    counter++;
                    break;
                
    
            }
        }
    }

Is the laptopchange function called? Try this function in void Update()