How to detect the proper image

You can use screenshot scraping to detect toggles. It should work in this case.