Managing and animating shape paths and masks