title: pygame cant load image. Other solutions not working
body: <p>I am trying to load an image with this code:</p>
  <pre><code>img_path = os.path.dirname(os.path.realpath(__file__)) + &quot;\\assets\\ms_cell_normal.png&quot;
  img = pg.image.load(img_path)
  
  game_display = pg.display.set_mode((WIDTH,HEIGHT))
  clock = pg.time.Clock()
  
  while True:
  
      clock.tick(FPS)
      for event in pg.event.get():
          if event.type == pg.QUIT:
              sys.exit(0)
  
      game_display.blit(img, (50,50))
      game_display.flip()
  </code></pre>
  <p>Somehow, I get the following error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;d:/PythonProjects/MineSweeper/main.py&quot;, line 59, in &lt;module&gt;
      game_display.flip()
  AttributeError: 'pygame.Surface' object has no attribute 'flip'
  </code></pre>
  <p>why ? I read everywhere that this is the way you load images ...</p>