add text_type argument to draw_text