improved loupe for high-res image previews