cleaned up the code
added CImg library and pseudocode for making a mask