switched to sprintf for lightbox attributes