Update MaskOptimization.cpp

The mask optimisation algorithm now calculates and updates the number of pixels in the mask as stored in the source catalogue.