small improvements

* loops in the graph are now drawn
* graph is resized if window size is changed
* added loop example to images folder