I tried your solution, but unfortunately there is still the same problem. When I click on the thumb it opens as new image. It should here <img class="xzoom" src="<?php the_field('preview_image'); ?>" xoriginal="<?php echo the_field('preview_image'); ?>" />