HW6: Parallelized creation of the mask

Parallelized the creation of the mask based on the source image (the
polar bear).