def preview_images(self, image_paths):
        """Display previews of images from the given paths."""
        ###
        cache_screen_state()

        ### reset thumb index
        self.thumb_index = 0

        ###
        self.image_paths = (
            [image_paths] if isinstance(image_paths, str) else image_paths
        )

        ### create image surfaces
        self.create_image_surfaces()

        ###
        self.prepare()

        ###

        self.running = True

        while self.running:

            ### perform various checkups for this frame;
            ###
            ### stuff like maintaing a constant framerate and more
            SERVICES_NS.frame_checkups()

            self.handle_input()
            self.draw()
Display previews of images from the given paths.
nodezator/imagesman/previewer/main.py