demo to show how to draw an image on canvas