Stopped the image flickering