update_image.c: Avoid unnecessary string duplications