made the textures and rendering work as intended