added usage of CImg library