code: def texture_from_image(renderer, image_name):
      
      soft_surface = ext.load_image(image_name)
      texture = SDL_CreateTextureFromSurface(renderer.renderer, soft_surface)
      SDL_FreeSurface(soft_surface)
      return texture
docs: Create an SDL2 Texture from an image file