imager: an R package for image processing