try to modernize ZPImageServer (hopefully) without breaking anything