Add midpoint displacement
Fix test_main to work again without drawing.hpp