/**
 * Load the bundled item thumbnail template.
 *
 * @param  WC_Bundled_Item   $bundled_item
 * @param  WC_Product_Bundle $bundle
 * @return void
 */
function wc_bundles_bundled_item_thumbnail($bundled_item, $bundle)
{
    if ($bundled_item->is_visible()) {
        if ($bundled_item->is_thumbnail_visible()) {
            $bundled_product = $bundled_item->product;
            wc_get_template('single-product/bundled-item-image.php', array('post_id' => $bundled_product->id), false, WC_PB()->woo_bundles_plugin_path() . '/templates/');
        }
    }
}