To set background image for a div, use
background-image[
^]
<div class="containerdiv" style="width:100%;background-image:url('tree.jpg')"> <?php if (1 == 1){?> <img class="cornerimage" border="0" src="https://via.placeholder.com/350x150" style="width:10%;"> <?php } ?> </div>