@Nipun if you want to check whether an image is displayed on a webpage or not and doesn't want to use JS Executor, you can use following lines of code:
WebDriver driver = new ChromeDriver();
        driver.manage().window().maximize();
        driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
        
        driver.navigate().to("https://www.google.com");
        
        Thread.sleep(5000);
        
        WebElement img = driver.findElement(By.id("hplogo"));    
        
        System.out.println(img.isDisplayed());
        
        driver.close();