does not work properly shortcode [course_thumbnail]

shortcode does not return the images correctly, only one or none.