advice for display mask image

I have a question to consult.

I added the segmtioned binary blood vessel image (0 is the black background, 255 is the segmtioned blood vessel) to the display interface through vtkImageActor, and the red blood vessel image will be displayed through vtkLookupTable Settings, but after I adjust the window width and window position, the red blood vessel image will disappear. How to keep the blood vessel image unchanged?

And how should mask data images like this one be displayed in VTK?

code

reader2 = vtk.vtkNIFTIImageReader()
reader2.SetFileNameSliceOffset(1)
reader2.SetDataByteOrderToBigEndian()
reader2.SetFileName(r"D:\Code\test_data\vessel\moved2_step3.nii.gz")
reader2.Update()

reslice2 = vtk.vtkImageReslice()
reslice2.SetInputConnection(reader2.GetOutputPort())
reslice2.SetOutputDimensionality(2)
reslice2.SetResliceAxes(resliceAxes)
reslice2.SetInterpolationModeToLinear()  # 线性插值

prop = vtk.vtkImageProperty()
# prop.SetOpacity(1)
prop.SetColorWindow(255)
prop.SetColorLevel(100)


lut2 = vtk.vtkLookupTable()
lut2.SetTableRange(reader2.GetOutput().GetScalarRange())
lut2.SetNumberOfColors(2)
lut2.SetTableValue(0, 0.0, 0.0, 0.0, 1.0)
lut2.SetTableValue(1, 1.0, 0.0, 0.0, 1.0)
lut2.Build()
# lut2.SetHueRange(0.0, 0.0)
# lut2.SetSaturationRange(1.0, 1.0)
# lut2.SetValueRange(1.0, 1.0)
# lut2.SetAlphaRange(1.0, 1.0)
# lut2.Build()

mapper2 = vtk.vtkImageMapToColors()
mapper2.SetLookupTable(lut2)
mapper2.SetInputConnection(reslice2.GetOutputPort())
mapper2.Update()

vesselActor = vtk.vtkImageActor()
vesselActor.SetProperty(prop)
vesselActor.GetMapper().SetInputConnection(mapper2.GetOutputPort())

before adjust (Code show)

after adjust (Drag the left mouse button down to adjust the gray level)