<patTemplate:tmpl name="snippet" type="condition" conditionvar="mimemajor">
<patTemplate:sub condition="image">
% VFSFile: image <{NAME}> (Obscureid: <{OBSCUREID}>)
\begin{center}
%\begin{figure}[!ht]
%   \centering
    <patTemplate:tmpl type="condition" conditionvar="mimeminor">
        <patTemplate:sub condition="jpeg">
            \includegraphics[width=\textwidth,height=0.5\textwidth,keepaspectratio]{image-<{ID}>.jpeg}
        </patTemplate:sub>
        <patTemplate:sub condition="jpg">
            \includegraphics[width=\textwidth,height=0.5\textwidth,keepaspectratio]{image-<{ID}>.jpg}
        </patTemplate:sub>
        <patTemplate:sub condition="__default">
            \includegraphics[width=\textwidth,height=0.5\textwidth,keepaspectratio]{image-<{ID}>.png}
        </patTemplate:sub>
    </patTemplate:tmpl>
    \label{<{OBSCUREID}>}
%   \caption{<{TITLE}>}
%\end{figure}
\end{center}
</patTemplate:sub>
<patTemplate:sub condition="__default">
% VFSFile {MIMEMAJOR}: <{NAME}> (Obscureid: <{OBSCUREID}>)
</patTemplate:sub>
</patTemplate:tmpl>
