WIP: refactored assigned to lightbox directive.