findElementByImage returning true for disabled button image

Hi All,

I am trying to perform findElementByImage using login button image.
Login button is highlighted using blue color when user enters the username and password, otherwise it will be grayed out/disabled.

I am using enabled login image for findElementByImage. But noticed even when the login is disabled driver.findElementByImage(getReferenceImageB64(“login.png”)).isDisplayed() returning true.

What should do to return false for disabled button scenario.