image.c work in progress 2