Hello,
Thank you for your constructive suggestions. It is exactly the image-storage format issue. I checked the notebook again and found that I forgot a step when storing the results, the sitk.RescaleIntensity function. Forgive my silly mistake!
images = sitk.Cast(sitk.RescaleIntensity(moving_resampled), sitk.sitkUInt8)