Add triggering custom events on some actions

* `lightbox.changed` on image change
* `lightbox.closed` on lightbox close
Fix previews to able to show thumbnail images instead of full images
Fix previews to load before preloading neighbor images
Disable closing on loader and image click