In the html template I have this style with a dynamic image:
You should do that as the +Günter Zöchbauer second part answer generates unwanted supplementary style background-position: initial and background-size: initial on Safari at least.
Note that I only set the background-image style: