fix bug that image preview doesn't appear on added/deleted diffs. closes #3