program now draws on canvas