Is this supposed to be a "matching" game? Where the player reveals two images and, if they match, then they win?
If so, I wouldn't even begin to code it like that. I'd put just the 3 image URLs into an array and then use code to create an array of double that size with each URL in there twice, shuffle the array, and then "deal" the cards face down. That code, where you have to put each image in place on the screen twice ahead of time is clumsy. Plus, if you wanted to change the number of images to 4 or 5 or 10 you'd have to almost rewrite the page.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.