style="background-image: url(<?= bloginfo('template_directory'); ?>/assets/img/pic.png);"
<style>
.element:nth-child(1){ background-image: url(...) }
.element:nth-child(2){ background-image: url(...) }
...
</style>
<div class="element">...</div>
<div class="element">...</div>
...