When masking something with an image that uses a texture that has renderDirect set to false results in other display objects within the atlas buffer being used. This is expected, however it would be nice to have a solution for this. It will most likely require an update to the base shader.