Image as boundary

Hello, I’m currently making a shmup game and I’m stuck on this…

How can I use this image frame as a boundary/restriction for player’s movement?

I’d create four static rectangle colliders around this image, then attach rigidbody and collider to player as well.

This is how they achieve that in Unity’s UFO game tutorial