Lightbox fixes

Two minor fixes:

1. The loading button now goes away once the image has loaded. This fixes a bug where it was still visible when the lightbox image was small.

2. Improved regex for the lightbox opening logic. This allows it to match double digit indexes.