{{- $sourceUrl := .Destination -}}
{{- $image := partial "helper/image" (dict "Resources" .Page.Resources "Image" $sourceUrl) -}}
{{- if .IsBlock -}}
{{- $alt := .PlainText | safeHTML -}}
{{- $Permalink := $image.Permalink -}}
{{- $Width := $image.Width -}}
{{- $Height := $image.Height -}}
{{ partial "helper/image/lazy" (dict
"Image" $image
"Alt" $alt
"Widths" .Page.Site.Params.Page.Image.Widths
)}}
{{ with $alt }}
{{ . | $.Page.RenderString }}
{{ end }}
{{- else -}}
{{- end -}}