this is a tutorial for my students to draw images in canvas