import pygame pygame.init() image = pygame.image.load('an_image.png').convert() # or .convert_alpha() image_rect = image.get_rect()