title: Pyautogui error: The Pillow package is required to use this function
body: <p>My pyautogui program gives me the following error when I do:</p>
  <p><code>position = pyautogui.locateCenterOnScreen(image, confidence=.7)</code></p>
  <p>Error message:</p>
  <pre><code>File &quot;C:\Users\ashis\AppData\Local\Programs\Python\Python39\lib\site-packages\pyscreeze\__init__.py&quot;, line 144, in wrapper
      raise PyScreezeException('The Pillow package is required to use this function.')
  pyscreeze.PyScreezeException: The Pillow package is required to use this function.
  </code></pre>
  <p>Other pyautogui functions are working properly only when I do <code>pyautogui.locateCenterOnScreen()</code> gives and error.</p>
  <p>I already have pillow properly installed:</p>
  <pre><code>Requirement already satisfied: pillow in c:\users\ashis\appdata\local\programs\python\python310\lib\site-packages (9.0.0)
  </code></pre>
  <p>Can anyone help please? I am following a tutorial.</p>