Change picture with one touch

hello, I want to create an image that shows something and when you touch it it shows another one and if you touch it again it returns to the previous one. my idea for that was to create a switch, load the two images and create a third one through an if formula that does exactly what I said but it doesn't work for me. help