Graph images generation. Graph permuting is fixed. Options for graphs
are added. Now doesn't segfault due multithreading.