How to mask an imported image as a plane?
What you can try to do, is using the image that you want to be filled with the transparent image, and convert it with a Color Ramp. This will work if you have a lot of contrast in that image. Here the Node setup: