\define imageit(image:"image.jpg")
<a href="$image$" target="new"><img src="$image$" width="25%" height="25%" /></a>
\end
e.g.
<<imageit "images/google_drive.png">>
\define imgpath(img) images/$img$
\define imageit(image:"image.jpg")
<$set name=path value=<<imgpath "$image$">>>
<a href="$image$" target="new"><img src=<<path>> width="25%" height="25%" /></a>
</$set>
\end
title: whatever you want
tags: $:/tags/Macro
text:
\define imgpath(img) images/$img$
\define imageit(image:"image.jpg")
<$set name=path value=<<imgpath "$image$">>>
<a href="$image$" target="new"><img src=<<path>> width="25%" height="25%" /></a>
</$set>
\end\define imageit(image:"image.jpg" path:"TW-Images/2017/")
<a href="$path$$image$" target="new"><img src="$path$$image$" width="25%" height="25%" /></a>
\endThis part<<imageit "myprettyimage.jpg">> produced the thumbnail alright but when clicked, there's a "File not found" message as it's still looking in the main folder rather than the "images" subfolder.