Started to transfer the img_coord function in imgcoord.c

I think we nedd to clear what what will be given by refernce (pointer) and what needs to be given by value.

Is there already a convention for that?