TextDialog class used to input the text for drawing