Random images now open in the lightbox if configured (see #5191)