oops minor bug in the image switch