For who using Python, Can do that with the help of pyautogui Library this is piece of code that's help
toaster_image = toaster image file path
screenshot_image = screenshot image file path [ taken by Appium ]
from pyautogui import locate
class ClassName:
def compareImage (self, toaster_image, screenshot_image):
result = locate(str(toaster_image), str(screenshot_image))
if result is None:
return False
else:
return True