Added a method to draw text.