v1.3.5: Fixes global gfxmode in server
In re-implementing the image server I had made the current graphics mode state global. This would be a problem if there were multiple clients for one server since images would be generated for whoever last set the graphics mode.