Declare the paste_canvas pointing in the block that uses it to limit its scope.