Fixed format function in util and bad function reference in the ImageClient