Cleanup + API to check if mouse is on the canvas