Create Mask_for_non_rectangular_objects