Thank you again for your quick reply.
I am not working with png format, i work with simpleitk, pynrrd and pydicom libraries.
just i wanted to get sample of slice as png. however i tried with python script and i got the same result for label black image but the raw images are clear.