Refactored/Changed the loading of textures