updated image.c