Texture management.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>