using different if-imag-name-on matcher logic for single and multiline thumbaniler definition