Improved CMake handling of CImg library