drawing animated shapes on canvas