added xtm_draw_tex