Example
Image 1, containing transparent pixels:

Image 2:

Concept
The transparent pixels in Image 1 should be ignored when matching inside Image 2. The idea is that no matter what Image 2's background contains, I am only trying to match the opaque parts of Image 1 in Image 2.
Is this a special case, or does the subimage-search cover this? I'm guessing I'd have to adjust the matching threshold but there's so many options I don't know where to start.
Goal
Ultimately, I'm trying to find a cursor in a video stream that looks like this (2880x1600):

This cursor is part transparent, so anything could be behind it
