I am working with images as numpy arrays. I have a mask and I am editing the picture based on the mask (also an array). Presently, I am looping through each pixel and changing a