fixed flickering image issue