title: Pygame: How do I add an image to a rect?
body: <p>I'm making my own game on Pygame, and I want to add images to rects instead of having a coloured rectangle.</p>
  
  <p>I know how to add an image to pygame, but I want to know if there's some way to add the image and use the Pygame.rect properties such us <code>rect.centerY</code> and <code>rect.centerX</code>.</p>
  
  <p>Does anyone know how?</p>