scibin/imstats: fix for all-zero images