For this technique, you can eliminate having to set a plane behind everything that lines up to your view or camera. I used to do what you are doing with a plane object but found an easier way in files where I don't need to have a plane back there.
Try this, maximize your camera viewport. Hit 'Ctrl+b' to open the 'Viewport Configuration' window. I've attached mine for the file I attached. Look for 'Use Files:' and choose a file and aspect options. Hit 'OK'.
Open 'Render Setup' and in the 'Environment' tab turn on 'GI environment' and set the color to black or turn the value to '0.0' , either or, or both. Either one should work.
Back in Max, turn off the Dome light (in the sample file I sent or turn off your own lights) and render. You'll see that the background image has no effect on the lighting. You should see that your objects are black, like a mask because they have no light but your background image is clearly visible.
I use Max 2019 and you didn't say what you have. The attached file is set back to Max 2016 and should open fine in that version or newer.
Rob Holmes
------------------------------------------------------------------------------------------------------------------------------------------
3ds Max (2023-2025), V-Ray 6.2, Ryzen 9 3950-X Processor, DDR 4 128MB, Gigabyte Aorus X570 Master motherboard, Sabrent Rocket NVMe 4.0 M.2 drives, NVidia RTX 4090, Space Pilot Pro, Windows 11 Pro x64, Tri-Monitor, Cintiq 13HD, Windows 11 x64
------------------------------------------------------------------------------------------------------------------------------------------