Applying image to only the border and not the background

Can this be added to just the border and not applied to the background?
https://jsfiddle.net/hL5q764f/

  background: linear-gradient(to bottom right, gray, black), url("https://i.imgur.com/pwdit9N.png"), linear-gradient(to bottom right, #eee, #ccc);
  background-origin: padding-box, border-box, border-box;
  background-clip: padding-box, border-box, border-box;
  box-shadow: 0 -1px white, 0 -1px 0 1px #bbb, 0 2px 0 1px #aaa, 0 2px 10px 1px rgb(0 0 0 / 20%);

Can the CSS mask property be used here?

All I would be doing is cutting out the middle so it is see through.

https://jsfiddle.net/hL5q764f/