only generate diff images if the files changed.