Which object are you exactly doing this?
In Text Object and charts (especially straight and pivot tables), we can insert images
Here is we need to do.
Specify your if condition and then set in general tab representation to Image
straight and pivot tables:
In expressions tab, we need to specify expression as Image