added support for getTex
Fixed some stuff