%[if %("%id=imSource%" == "stacksImage")%]%

%[endif]%%[if %("%id=imSource%" == "whImage")%]%

%[endif]%%[if %("%id=imSource%" == "cmsImage")% ]% %%[[if edit]]%%

%%[[endif]]%%%[[if !edit]]%%
![%[if %("%id=altType%" == "cms")%]%%%id=cmsID% -alt%%[else]%%id=altText%%[endif]%](%baseURL%cms-data/image/%id=cmsID%-%id=mobile%.%id=ext%)
%%[[endif]]%% %[endif]% %[if %id=useCaption%]%
%id=captionText%%[endif]%