Added map.c which implements mapping images through tables.