Don't count if no images at all
Give up early if zero rows
Merge branch 'master' of git://github.com/frabcus/magic-summary-tool