The Cryptomatte node makes the UI very slow in Image mode. That's because the node updates its available Cryptomatte layers on every redraw, which is a blocking operation that is not very fast. To fix this, we only update the layers when engine layers change for the Scene mode, and when image settings change for Image mode. Pull Request: https://projects.blender.org/blender/blender/pulls/124738