<div class="container">

  <div class="element">
    <img src="http://tympanus.net/codrops-playground/assets/images/cssref/properties/mask-border/sleepy-owl.jpg" alt="">
  </div>
</div>
body {
  color: #555;
  font-size: 1.1em;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.container {
  margin: 40px auto;
  max-width: 700px;
}

.element {
  border: 5px solid #ddd;
  -webkit-mask-border: url(http://tympanus.net/codrops-playground/assets/images/cssref/properties/mask-border/mask-border-image.png) 27 / 27px stretch alpha;
  mask-border: url(http://tympanus.net/codrops-playground/assets/images/cssref/properties/mask-border/mask-border-image.png) 27 / 27px stretch alpha;
}

img {
  width: 100%;
  display: block;
}