Refactoring drawing on canvas using artist