initial texture refactoring

Signed-off-by: serengeor <serengeor@gmail.com>