Hello!
I have been wondering how I could edit following code so that I could determine width and height of random image. I tried almost everything.
...and is it somehow possible to turn that random image to grey but the orginal (when clicking the link) would stay coloured.
The Effervescence+ theme uses the image size in creating the surrounding frame. You can look at that theme to see how it does this.
There are a number of custom image thumb functions depending on what you want to accomplish. Please search the functions guide for these functions.