I have built a feature report that includes an image that may or may not be attached to a survey. I have made sure in the template the it has the appropriate 'if' function around it so that if it is not there it is ignored. Despite this, I get an error message telling me it was unable to render the non existent image.
Section in report template:
${if wc_company}${dcpt_signature|size:0:28}${/}${wcpt_signature|size:0:28} |
Error:

I have other report templates that seem to ignore the 'if' function, I'm wondering if this is another case of this problem?