instead of checking the image name it's good to check the image itself