changes to image.c