Use qemu_mallocz() instead of calloc() in img_convert()