updates lightbox image name and titles, but it still needs better logic written in the controller