added text drawing functionality