Text filed now clears after creating a painting