fixed flickering of image