Shit.

I added all the equals stuff to enhance performance a little. I check if the new renderer is actually different from the one being used, otherwise there's no effect at all. This may be interesting to avoid unnecessary load of images, but obviously we can just live without it.