Convert regular expression to an image of DFA.