I found here such a previewer for images, written in javascript using the Scriptaculous and Prototype libraries.
I don’t want to translate, everything is perfectly and simply described on the site, I didn’t see any fundamental differences from any Lightboxes, except that the edges are rounded. And yet - this miracle uses Canvas and VML to draw images. ')
In any case - someone can come in handy. Good luck!