.bg-img{
position: relative;
float: left;
width: 200px;
height: 150px;
margin-right: 10px;
border: 1px solid #ccc;
background-size: contain;background-color: white;background-position:center;background-repeat:no-repeat;
}
.bg-img .x-close{
position: absolute;
float: right;
right: 0;
top: 0;
width: 20px;
height: 20px;
background: black;
}
.bg-img .x-close svg{
position: absolute;
top: 0;
color: white;
width: 20px;
height: 20px;
}