drawPath() : changed how to set path attributes