added Draw.mask() and removed debug code from Polygon