The layer with black and white paint.
The frame has been moved.
When you paint the layer mask black you can then see the other layer underneath. With the white the layer that you used for the black paint can’t be seen anymore. When you use gray paint both the pictures sort of become just one picture with attributes from both frames.