improve Texture framework