php – How can the image be displayed on the woocommerce product page?

I already have the code written but I did not know how I can link my image with this

listify_cover function ($ class, $ args = array ()) {
$ defaults = apply_filters (
& # 39; listify_cover_defaults & # 39 ;,
training(
& # 39; images & # 39; => false,
& # 39; object_ids & # 39; => false,
& # 39; size & # 39; => & # 39; large & # 39 ;,
)
);
$ args = wp_parse_args ($ args, $ defaults);
$ image = false;
$ atts = array ();

global $ wp_query;

$ post = get_post ();

if ((function_exists (& # 39; is_shop & # 39;) && is_shop ()) || is_singular (& # 39; product & # 39;)) {// WooCommerce store and product.
$ image = wp_get_attachment_image_src (get_post_thumbnail_id (wc_get_page_id (& # 39; shop & # 39;)), $ args['size'] );
} elseif (is_tax (array (& # 39; product_cat & # 39 ;, & # 39; product_tag & # 39;))) {// WooCommerce archive.
$ thumbnail_id = get_woocommerce_term_meta (get_queried_object_id (), & # 39; thumbnail_id & # 39 ;, true);
$ image = wp_get_attachment_image_src ($ thumbnail_id, $ args['size'] );
} elseif ((is_home () &&! in_the_loop ())) {// Blog.
$ image = wp_get_attachment_image_src (get_post_thumbnail_id (get_option (& # 39; page_for_posts & # 39;)), $ args['size'] );
} elseif (! in_the_loop () && is_singular (& # 39; post & # 39;)) {// Blog post.
$ image = array (get_the_post_thumbnail_url (get_post (), $ args['size'] ));
} elseif ((! did_action (& # 39; loop_start & # 39;) && is_archive ()) || ($ args['images'] || $ args['object_ids'] )) {// Blog Archive.
$ image = listify_get_cover_from_group ($ args);
} elseif (is_a ($ post, & # 39; WP_Post & # 39;)) {// Single.
if (& # 39; & # 39 ;! == $ post -> _ thumbnail_id) {
$ image = wp_get_attachment_image_src (get_post_thumbnail_id (), $ args['size'] );
} elseif (apply_filters (& # 39; listify_listing_cover_use_gallery_images & # 39 ;, false) && listify_has_integration (& # 39; wp-job-manager & # 39;)) {
$ gallery = Listify_WP_Job_Manager_Gallery :: get ($ post-> ID);

if ($ gallery) {
$ args['images']    = $ gallery;
$ args['post_type'] = & # 39; job_listing & # 39 ;;

unset ($ args['object_ids'] );

$ image = listify_get_cover_from_group ($ args);
}
}
}

$ image = apply_filters (& # 39; listify_cover_image & # 39 ;, $ image, $ args);

yes (! $ image) {
$ class. = & # 39; no-image & # 39 ;;

return sprintf (& # 39; class = "% s" & # 39 ;, $ class);
}

$ class. = & # 39; has-image & # 39 ;;

$ atts[] = sprintf (& # 39; style = "background-image: url (% s);" & # 39 ;, $ image[0] );
$ atts[] = sprintf (& # 39; class = "% s" & # 39 ;, $ class);

return implode (& # 39; & # 39 ;, $ atts);

}
add_filter (& # 39; listify_cover & # 39 ;, & # 39; listify_cover & # 39 ;, 10, 2);

in the template I have:

<div >

Div is showing with his class but without image:
enter the description of the image here
Any help would be appreciated. Thank you