The old image viewer is still based on jQuery and has various conceptual issues. Ideally, an external solution should be used here. ref https://github.com/WoltLab/WCF/issues/3282