Make gallery open at the image we've scrolled to.

Also fixes a bug with spoilered image file names.