Display image related to calendar event

hello, using calendar plugin I wonder how to display related event image . I can display everything ( description, begin_date, location etc.) using in snippets for ex. ($event->getField('location')but nothing works trying to show event related image … any suggestion?

here the original calendar.yml

title: Calendar
pages: true
fields:
  title:
    label: Title
    type:  text
  calendar:
    label: Calendar
    type: structure
    entry: >
      <strong>{{begin_date}} ― {{name}}</strong><br>
      {{location}} // {{begin_time}} // {{price}}
    fields:
      name:
        label: Name
        type: text
      description:
        label: Description
        type: textarea
        size: small
      begin_date:
        label: Start date
        type: date
        format: MM/DD/YYYY
        width: 1/2
      begin_time:
        label: Start time
        type: time
        interval: 15
        width: 1/2
      end_date:
        label: End date
        type: date
        format: MM/DD/YYYY
        width: 1/2
        help: Leave empty if not needed
      end_time:
        label: End time
        type: time
        interval: 15
        width: 1/2
      location:
        label: Location
        type: select
        options:
          bar: BAR
          venue: VENUE
          stage: STAGE
        width: 1/2
      price:
        label: Price
        type: number
        width: 1/2
        help: 0 = gratis
        default: 0
      image:
        label: Picture
        type: image
files:
  fields:
    caption:
      label: Caption
      type: textarea

This should work:

<?php 
$calendar = calendar($page->calendar()->yaml());
foreach($calendar->getAllEvents() as $event):
  if($image = $page->image($event->getField('image'))): ?>
    <img src="<?= $image->url() ?>" alt="">
<?php endif; ?>
<?php endforeach; ?>

Thank you, it works perfectly, now I can publish the details of each event with the corresponding image :ok_hand: