drawing the cursor