title: Image not loading in pygame
body: <p>So I have tried multiple things(Firstly the code was OOP based but i changed it, messed around with variable but it was of no use) and I dont know why my image (Hero.png in code) isn't showing.I'm kinda new to python/pygame so it must be a dumb mistake. Thanks anyways here is the code.It isnt a complete code yet.</p>
  <pre><code>Import pygame
  pygame.init()
  
  winX = 720
  winY = 1280
  win = pygame.display.set_mode([winY, winX])
  GameRun = True
  clock = pygame.time.Clock()
  HeroSprite = pygame.image.load('Hero.png')
  pygame.display.set_caption(&quot;Game thingy&quot;)
  bg = pygame.image.load('bg.jpg')
  HeroX = winX / 2
  HeroY = winY - 100
  vel = 5
  def redrawGameWindow(win, HeroX,HeroY):
      win.blit(bg, (0,0))
      win.blit(HeroSprite, (HeroX, HeroY))
      pygame.display.update()
  
  while GameRun:
      clock.tick(60)
      pressed = pygame.key.get_pressed()
      if pressed[pygame.K_LEFT]:
          HeroX -= vel if HeroX &gt; 20 else 0
      elif pressed[pygame.K_RIGHT]:
          HeroX += vel if HeroX &lt; winX - 20 else 0
  
      for event in pygame.event.get():
          if event.type == pygame.QUIT:
              GameRun = False
      redrawGameWindow(win, HeroX, HeroY)
  
  pygame.quit()
  </code></pre>