Layers in editor for multiple images

I'm working on a desktop software that is in its core a simple image editor (apply filter, draw on image etc.) but the catch is that the user should be able to open multiple images, edit, and compare them at the same time.

Drawings and filters are layers upon images that can be toggled (show/hide) and reorderd.

I'm looking for a comprehensible UX pattern to display multiple images and their corresponding layers. Should I aim for a design similar to wellknown image processing software like Photoshop and have a sidebar containing all layers (each in a subsection per image)? Or display each image in a seperate GUI element with its layers at the bottom? Or any other ideas?

I'd be thankful for ideas and inspirations.