Describe the bug
I think it's a regression for layout.
When I define a expression for a raster picture in an atlas layout, it falls back to SVG picture.

bug_report.zip
@gioman I don't have idea for a better title... feels free to modify it.
How to Reproduce
- Open project
- Open the only print layout
- Try to switch from SVG to raster (you can't)
- Delete expression
- Switch to raster
- Try to use a field as an expression (it switch to SVG)
- See warnings in logs
QGIS and OS versions
Tested on both 3.18.0 and 3.16.4 new OSgeo4W
Additional context
It worked fine on 3.16.3 as I used an expression to display picture based on attributs on a previous project.
Describe the bug
I think it's a regression for layout.
When I define a expression for a raster picture in an atlas layout, it falls back to SVG picture.

bug_report.zip
@gioman I don't have idea for a better title... feels free to modify it.
How to Reproduce
QGIS and OS versions
Tested on both 3.18.0 and 3.16.4 new OSgeo4W
Additional context
It worked fine on 3.16.3 as I used an expression to display picture based on attributs on a previous project.