fixed various bugs, added lightbox JS to image gallery media sets