How to take screenshots of the canvas?