Cherry-pick MR !336 to master branch
Ostap: small adjustment of canvas&co
See merge request !336 (merged)
(cherry picked from commit 6a859f55)
1bb6fe6c small adjustment of canvas&co dcf4b254 improve drawing with VisualizeError option aa8ea19d allow to specify the style to draw-command