"I would just set a value for the cookie that you can use to choose which image to display" sounds like a good idea, but how would i go about doing that. I've just never had to really do anything relating to cookies, even though I've been using php for awhile and starting using google analytics on some other things.
What I trying to do was set this cookie to an image, but the image is just going to be a 1pixel x 1 pixel placeholder. But would your way above be much easier?