Python Pygame не отображает изображения правильно

Я новичок в Python, и я начал изучать «Курс ускоренного обучения Python» Эрика Маттеса. Я нахожусь в начале главы Pygame и следую коду, но мои загруженные изображения всегда выглядят поврежденными, и я не знаю почему. Код из книги. Первый файл:

    import pygame
    class Ship():
        def __init__(self, screen):
            """Initialize the ship and set its starting position."""

    # Load the ship image and get its rect.
            self.image = pygame.image.load('ship.bmp')
            self.screen = screen
            self.rect = self.image.get_rect()
            self.screen_rect = screen.get_rect()
    # Start each new ship at the bottom center of the screen.
            self.rect.centerx = self.screen_rect.centerx
            self.rect.bottom = self.screen_rect.bottom
        def blitme(self):
            self.screen.blit(self.image, self.rect)

Второй файл:

    import sys
    import pygame
    from settings import Settings
    from ship import Ship
    def run_game():
        # Initialize game and create a screen object.
        pygame.init()
        ai_settings = Settings()
        screen = pygame.display.set_mode((ai_settings.screen_width, ai_settings.screen_height))
        pygame.display.set_caption("Alien Invasion")
        ship = Ship(screen)
        bg_color = (230, 230, 230)

        # Start the main loop for the game.
        while True:
            # Watch for keyboard and mouse events.
            for event in pygame.event.get():
                if event.type == pygame.QUIT:
                    sys.exit()      
            # Make the most recently drawn screen visible.

            screen.fill(ai_settings.bg_color)
            ship.blitme()


            pygame.display.flip()


    run_game()

Файл настроек:

class Settings():
       """A class to store all settings for Alien Invasion."""
       def __init__(self):
           """Initialize the game's settings."""
           # Screen settings
           self.screen_width = 800
           self.screen_height = 600
           self.bg_color = (230, 230, 230)

Мой BMP выглядит так:

Я пытался добавить другое изображение, но не повезло:

Как я могу это исправить?

Ответы на вопрос(1)

Ваш ответ на вопрос