Figure shortcode syntax

I have a working gallery shortcode as follows:

{{ with $.Get "title" }}<h2>{{ . }}</h2>{{ end }}
{{ with $.Get "text" }}<h3>{{ . | markdownify }}</h3>{{ end }}
    <div class="grid">
      {{ range $image := (.Page.Resources.ByType "image").Match (printf "%s*" (.Get "src")) }}
      {{ $src := $image }}
      {{ $thumb:= .Resize "300x" }}
        <a href="{{ $src.RelPermalink }}">
      	<img
      	class="lazyload blur-up"
      	data-src="{{ $thumb.RelPermalink }}"
      	alt="{{ .Name }}"
      	>
        </a>
      {{ end }}
    </div>

I would like to have a quite similar figure shortcode with the original image size and the thumbnail resized image but I don’t know how to do it.
I tried to get the single $src variable (instead of {{ range $image := (.Page.Resources.ByType "image").Match (printf "%s*" (.Get "src")) }} ).

Basically how to have a shortcode syntax which make available the image original size and a resized one (as thumbnail).
Any Idea ?