How to turn the mask into a white picture with black background. Then convert the image to base64 Using getLayerMask and encodeImageData API caused PS to crash