Adding an Image to each State? Text101

I have seen several posts regarding what I am asking. Sadly none of them seems to give a definitive answer. I am confused and need help.

Could I ask that someone provide a completed script which allows a specific image to display during a specific state? I would rather have the complete working script and work backwards to understand how it operates rather than trying to piece something together and giving up…

If someone fancies making a video and linking it that would also be great.

I can’t finish my project without this as the Images play a huge part in my story. I’m getting old and my brain is about to implode. Thanks in advance!