I need to implement a project on my web page, but I'm kind of new to CSS.
I am trying to add a frame over a user image. For example, for any image size, I want this profile image to look like this:

... I want to add a rectangle with a transparent circle inside, like: 
... so the end result will be like this:

I am currently adding this frame as an image, resizing the user's image, but decreasing the resolution.
I really need the frame height to be equal to the size of the image height and put the frame and circle in accordance with the user's image.
Any ideas?
source share