DPI checking improvements
output() -> report()
Adding C++ and R functions for checking whether an image is binary (i.e. one nonzero value)