Fix image switching