optimize drawing of tracks to hopefully increase canvas performance