tests: print image difference statistics
When a test fails and it produces a difference image, also compute the min/max
per-channel signed difference statistics. These numbers can be used to adjust
the fuzz needed for fuzzy_match_pixels()
to pass. Otherwise one would have to
manually inspect the reference and result images and figure out the values.