Improve text and image diffing