HW6: Added creation of border and interior masks