Fix server and build so that it works with figures
Add a figure to test