Have got the plugin working alright now, so previous post can be ignored. Something strange going on with my browser caching.
I've noticed that when using the random function to show 4 images, sometimes it displays 4 images and othertimes it shows 3 images. This is what happens in Firefox.
However, in IE 6 when it sometimes shows 3 images, the 4th image is not displayed - only the red X. I checked the image link url on the red x and it appears to be truncated. It ends like this: "....?album=nameofalbum&image="
I have an even number of photos in my photo gallery, so I know that isn't the cause of it showing 3 instead of 4 photos.
Can anyone help with this problem?