Where possible, factor out common code around diff-ing images in the webkitpy ports, especially around using a custom ImageDiffer class for the iOS simulator.