mapping: move functions to header file.
modified:   CImg.mapping.cpp: move main functions to header file.
new file:   mapping.h: move main functions to header file.