initial implementation of drawing on canvas