Nice things... Looks like small bug (or at least unexpected behaviour). I guess, the problem that after IMAQ Learn Pattern you have "Template Image" as output. Pattern information stored separately from the image and assotiated with an image through reference. IMAQ Copy copied the image and reference, but not make a copy of the pattern information. It looks that after IMAQ Copy you have two images which "linked" with same pattern. As result after removing wision info from the copy you have removed pattern assotiated with first image as well.
If you will learn pattern twice, then it works as expected:
with overlay it working without any problem.
But such behaviour with learn pattern can produce hard unexpected problem in the application. Try to submit a support request...
Magnificent! Still not fixed in Vision 2019!
It's a serious issue, don't you think?
Also as of now learning another template on an image copy (doesn't matter with old or current VIs) will also remove template info from original image.