refactors _mask functionality to use clipStart/clipEnd