JQuery for image preview and lightbox back to work