These static functions shouldn't be part of the Preview class imo, since they are not related to the preview itself.

Instead something like PreviewManager should be used for that