Created saveCanvasIds() helper method.