imager: an R package for image processing based on CImg