Cut the frame up. Split it into the frame and the grey background. Put the square image between the two layers.
split
There are no vector based masking tools in unreal.
You could also use a mask
Frame with transparency
background is just a plane image with grey tint