Added a conditional to image switch function.

I added this conditional so that the image switch checks if the image clicked is already visible and doesn't do a weird fade in and out.