Improvements to texture tool.

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