Inspired by [vi.sualize.us](http://vi.sualize.us/a_simple_closed_mona_lisa_space-filling_curve_kaplan_and_bosch_generative_art_picture_jqWC.html)

### Goal

The input is a grayscale image and the output is a black and white image. The output image consists of just one closed curve (loop) that is not allowed to intersect with itself or touch itself. The width of the line shall be constant throughout the whole image. The challenge here is finding an algorithm for doing so. The output just has to represent the input image, but with any artistic freedom. The resolution is not so important but the aspect ratio should stay about the same.

### Example

![enter image description here](https://i.stack.imgur.com/MEaEk.png)
![enter image description here](https://i.stack.imgur.com/wH8bX.jpg)

### More test images

![loch ness](https://i.stack.imgur.com/KRZON.jpg)
![sky scraper](https://i.stack.imgur.com/Lj8Ax.jpg)
![einstein](https://i.stack.imgur.com/RKP5g.jpg)
![checker](https://i.stack.imgur.com/K7EuO.png)