Clean up cursor drawing