title: How to show images in window in PySimpleGUI?
body: <p>I'm working on PySimpleGUI and I want to show images in the Window of PySimpleGUi. Basically, first I'm converting my sentence into characters and now I want to simply show an image of that character in the window and speak which is the character.
  Below is my code:</p>
  <pre><code>from tkinter.constants import TRUE
  import PySimpleGUI as sg
  from PySimpleGUI.PySimpleGUI import Window
  import pyttsx3
  import time
  import _thread
  
  first_coloumn = [
      [sg.LBox([], size=(20,10), key='-FILESLB-')],
      [sg.Input(visible=False, enable_events=True, key='-IN-'), sg.FilesBrowse()],
      [sg.Text('Enter what you wanna teach : ')],
      [sg.Input(key='-inp-')],
      [sg.Button('Reads'),sg.Button('Pause'),sg.Button('Slow'),sg.Button('Fast'),sg.Button('Stop'),sg.Button('Repeat'),sg.Button('Exit')]
  ]
  
  image_viewer_coloumn = [
       [sg.Text(&quot;Image Viewer&quot;)],
       [sg.Image(key='-IMAGE-')],
   ]
  
  layout = [
      [
          sg.Column(first_coloumn),
          sg.VSeparator(),
          sg.Column(image_viewer_coloumn),
      ]
   ]
  
  
  window = sg.Window(&quot;Narrator&quot;,layout)
  engine = pyttsx3.init()
  words = []
  chars = []
  a = 0.5
  stop = False
  def splits(sentence):
      return list(sentence)
  def speak(a):
      global stop
      for i in range (len(chars)):
          if stop:
              break   
          elif chars[i]=='A' or chars[i]=='a':
              filepath = &quot;D:\Office-Work\Chars\A.png&quot;
              window['-IMAGE-'].update(filepath=filepath)
              engine.say(chars[i])
              time.sleep(a)
              engine.runAndWait()
  while TRUE:
      event,values = window.read()
      
      if event == 'Reads':
          out = values['-inp-']
          if out:    
              chars = splits(out)
              stop = False
              _thread.start_new_thread(speak, (a,))
  </code></pre>
  <p>and I'm getting the following error:</p>
  <pre><code>update() got an unexpected keyword argument 'filepath'
    File &quot;C:\Users\Kashi\OneDrive\Desktop\PySimpleGUI\a.py&quot;, line 45, in speak
      window['-IMAGE-'].update(filepath=filepath)
  </code></pre>