<style>
div {
  position: relative;
  width: 100px;
  height: 100px;
  color: transparent;
  font-family: Ahem;
}

img { 
 position: absolute;
 width: 100%;
 height: 100%;
 background-color: green;
}
</style>
<div>X<img></div>
