ADD: add util method of canvas