Tag for clickable Image with E-Mail link

Hello!
Is there a possibility to add a picture with an e-mail link, which is also encrypted via Kirby?

We added following Code as a Tag, but there is no encryption for the E-Mail-Address.

kirbytext::$tags['emailbestellung'] = array(
  'attr' => array(
    'img',
    'subject',
    'text',
    'body'
  ),
  'html' => function($tag) {
  $email = $tag->attr('emailbestellung');
  $url	 = $tag->page()->url();
  $bild	 = $tag->attr('img');
  $subject = rawurlencode($tag->attr('subject',null));
  $body = $tag->attr('body',null);
  $body = rawurlencode(str_replace('\n', "\n", $body));
  $query   = ($subject || $body) ? '?' : '';
  $query   .= ($subject) ? 'subject='.$subject : '';
  $query   .= ($subject && $body) ? '&' : '';
  $query   .= ($body) ? 'body='.$body : '';
  return '<a href="'.$email.$query.'" title="'.$title.'">'.$text.'<img class="emailbestellung" src="' . $url . '/' . $bild . '" /></a>';
  
      }
);

You can run the email address through str::encode(). This is the same operation as in the email Kirbytag.

Please note that this method does not “encrypt” the email address, it only encodes it. This means that you can decode the address at any time. Encoding is therefore only a minor protection against simple web scrapers, it’s no full protection.