updated function calls and other errors in image.c