how to make text appear when clicking on the picture, which would be removed by clicking on the picture again

What you’re wanting is a “toggle.” And if you Google toggle Thunkable, you’ll see YouTube videos that explain how to set that up.

But the basic idea is shown in this post: