<div style="inbox">
<img src=""/>
</div>
<style>
.inbox{
position:relative;
padding-top:100%;
width:100%;
}
.inbox img{
position:absolute;
top:0px;
left:0px;
height:100%;
object-fit:cover;
</style>