add code to make thumbnails for images via the canvas