modified image.c