Implementation of CImg library