Remove global references to the canvas element allowing to render the
component more than one time. Thank you @lynaghk!