I have a question about your masking material. Are you only using UV values as input (TexCoord) or is there a way to know the distance from the edges in pixels? With UVs only, I wouldn’t know how to prevent the rounded edges from scaling with the size of the image (which I don’t want…).
edit: actually, nevermind. I found the GetUserInterfaceUV node with its PixelSize.