zoom and pathWidth resize working