Added original image-diff code