first refactoring step for the handling of Textures