Help function for loading images in the TextureManager