graphics: new texture framework foundation (old changes)