Good afternoon, hope this helps if you have any questions feel free to ask.
You need a new library, install this: pip install opencv-python
import pyautogui as ac
from time import sleep
procurar = "yes"
while procurar == "yes":
try:
x, y = ac.locateCenterOnScreen('92.png', confidence=0.9)
ac.click(x, y)
sleep(1)
except:
sleep(2)
ac.click(1479,218)
sleep(2)