Various bugfixes as well as proper exporting of images and server files. Didn't have time to test. Closes #43 and #50