fixed flicker in img