Fixed the bug where the images did not expand and shrink with the opening and closing lightbox.