Added image comparison method