Using $this in closure for lightbox choice (#988)