I want to add a pen to some images. As a result, I want to end up with:

I understand that this issue has been published before, and I considered the options, using, for example box-shadow attr. I have a problem with this method. I will have this picture on top webm, so the background will not always remain the same. Thatβs why I have to make the pen transparent, which Iβm not lucky with yet! Is this even doable in CSS? This is the result that I get when I use box-shadow so far:
body{
background:green;
}
div {
background: red;
width: 200px;
height: 142px;
position: relative;
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
-webkit-box-shadow: inset 0 0 18px 20px #fff;
box-shadow: inset 0 0 18px 20px #fff;
}
<html>
<body>
<div></div>
</body>
</html>
Run codeHide resultI know that many of you will simply comment that I can set the shadow color to green, but as defined earlier, I want to make it transparent, because the background will constantly change.
Thanks in advance for any comments!