use img in :before css code example
Example: add image ::before css
element::after{
content:url('blackCarrot.png');
position:relative; /*or absolute*/
z-index:100000;
left:-50px;
top:10px;
}
element::after{
content:url('blackCarrot.png');
position:relative; /*or absolute*/
z-index:100000;
left:-50px;
top:10px;
}