extracted textures to new class