as.cimg.raster function

Convert a raster object to a cimg object