added texture support
code cleaning