Fixed bug with not saving textures