Fix image swap flicker with CSS sprites.