added Mask and RingMask class
imports from distance modules