Fixed the differencing of images for the webagg/nbagg backends.
Merge pull request #3567 from pelson/nbagg_diff_image_fix

Fixed the differencing of images for the webagg/nbagg backends.