update preview image, and fix a NPE in time server