title: Displaying an image using a class on pygame
body: <p>I am new to using pygame and I am trying to make a class that will display an image on pygame. I want to make it so I can eventually put multiple images onto the screen and move them around the screen. At the moment I just want to display the image on the screen using this format. Can anyone show me code to do that and explain why?</p>
  
  <pre><code>import pygame 
  import time 
  import random 
  
  pygame.init() 
  
  display_width = 1000 
  display_height = 750  
  
  Gameplay = False 
  
  gameDisplay = pygame.display.set_mode((display_width,display_height)) 
  clock = pygame.time.Clock() #Starts auto clock updater
  
  background_image = pygame.image.load("Image/Background.jpg").convert() 
  gameDisplay.blit(background_image, [0, 0]) 
  
  EnImg = pygame.image.load('Image\Enemy.gif') 
  
  class Enemy(pygame.sprite.Sprite):
  
      def __init__(self,dx,dy,image):
          pygame.sprite.Sprite.__init__(self)
          self.rect = pygame.image.load('Image\Enemy.gif')
          self.image = image
          self.rect.x = dx
          self.rect.y = dy
  
      def update(self):
          pass
  
  while not Gameplay: 
      for event in pygame.event.get():
              if event.type == pygame.QUIT:
                  pygame.quit()
                  quit()
  
      gameDisplay.blit(background_image, [0, 0])
      EnImg = Enemy(500,500,EnImg)
      EnImg.draw(screen)
      game_change()
  
      pygame.display.update() 
      clock.tick(60) 
  </code></pre>