Made it possible to load textures directly from files.