as.raster.cimg function

Convert a cimg object to a raster object for plotting