Changed call of header files compatible to mvs2010
added free(buf2) in imageprocessing.c