implement naive image comparison