Fix image blinking