Any idea how I can sort out the black background pixels? Normally they are taken care of with the Blit, but using this new routine I am blending the black pixels from the source with the destination image

I was thinking about adding a mask maybe? Background is $0000 btw.