Revert "buildhistory_analysis: fix error when comparing image contents"

This reverts commit 5b616aa7b618f6ed221d6fa9738220a2c2349f7d.