How to use render-image.html to customize the rendering image path

<p class="md__image">
  <img src="/{{ path.Dir page.File }}/{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title }} title="{{ . }}" {{ end }} />
</p>

{{ path.Dir page.File }}