WP All Import Add-on Additional Variation Gallery Images

I have created an WP All Import Add-on, but I can only manage to get two images following the http://www.wpallimport.com/documentation/addon-dev/complete-add-on/
guidelines.
<?php
/*
Plugin Name: WP All Import – Additional Variation Images Gallery for WooCommerce Add-On
Description: An add-on for importing images to variations image gallery.
Version: 1.0
Author: Rein Zarandona
Author URI: https://www.upwork.com/fl/reinhardz2
*/
include “rapid-addon.php”;
$variations_gallery_addon = new RapidAddon(‘Variations Gallery WP Add-On’, ‘variations_gallery_addon’);
$variations_gallery_addon->import_images( ‘addon_variation_gallery_images’, ‘Variations WP Add-On Gallery Images’ );
function addon_variation_gallery_images( $post_id, $attachment_id, $image_filepath, $import_options ) {
    update_post_meta( $post_id, ‘woo_variation_gallery_images’, [‘woo_variation_gallery_images’][$attachment_id] );
}
$variations_gallery_addon->add_field(‘addon_variation_gallery_image’, ‘Variations Featured Image’, ‘image’);
$variations_gallery_addon->set_import_function(‘variations_gallery_addon_import’);
// admin notice if WPAI and/or Variations isn’t installed
if (function_exists(‘is_plugin_active’)) {
    // display this notice if neither the free or pro version of the plugin is active.
    if ( !is_plugin_active( “woo-variation-gallery/woo-variation-gallery.php” ) ) {
        // Specify a custom admin notice.
        $variations_gallery_addon->admin_notice(
            ‘The Variations Gallery Add-On requires WP All Import <a href=”http://wordpress.org/plugins/wp-all-import” target=”_blank”>Free</a> and the <a href=”https://wordpress.org/plugins/woo-variation-gallery/”>Additional Variation Images Gallery for WooCommerce</a> plugin.’
        );
    }
    // only run this add-on if the free version of the plugin is active.
    if ( is_plugin_active( “woo-variation-gallery/woo-variation-gallery.php” ) ) {
        $variations_gallery_addon->run();
    }
}

Please help, thanks