Conditional image via code component

In my current task, I have a code component as part of a feedback that either shows a tick if they got the answer correct or a cross. I have an image component and then a code component, within the code component I have specified the conditions that need to be met for the image to be a tick or a cross depending on the correct answer. In my image component I then select the right image as default. The code then overrides this to show the cross image when needed. However, if I input the cross image in the image component, the tick does not get loaded in and I get unknown resource error. Does anyone know why?

Also I have the same code written further down the builder with different variables, that one doesn’t want to work entirely, but it works in the first section of the task.

Additional resources need to be specified in Experiment Settings/Online/Additional Resources for the to work online.

I did that and it worked! In the second routine I had the code component first in the component order rather than last and its why it didn’t work later in the task. Thank you for your help .