How to replace or change image depending if switch is on or off?

Thank you. Perfect. Thank you for the example.