I'd like to try your lazyimages with picviewer_addon in Throwback-XM2.
I recommend to use native lazy loading
Simply add loading="lazy" to the image tag
It will work in future browser versions
P.S.
the pictureviewer.zip works,
if you add id="files" to the table tag (with %list%)
update: pictureviewer works also with mobil-light_4.6 (set compatible=1)
FAQ pictureviewer:
click on image icon, next pic click on pic, close click on X
previous pic click on left side of pic (fullscreen click on left side of first pic (exit=Esc))