# 1. Load your black & white mask as a grayscale image
mask = Image.open(img_path_mask).convert("L")