I am working on Problem 10-8, part (b), from Lee's Introduction to Topological Manifolds. The problem is as follows, where $M$ is a connected, compact, nonempty 2-manifold.
Suppose $p,p'$ are points in $M$ and $U, U'$ are coordinate balls containing $p$ and $p'$ respectively. Show that there exists a homeomorphism $F: M \setminus \{p\} \rightarrow M \setminus \{p'\}$ and a loop $f: I \rightarrow U$ such that $[f]$ generates $\pi_1(U \setminus \{p\})$ and $[F \circ f]$ generates $\pi_1(U' \setminus \{p'\})$.
What I have so far: I know that there is a homeomorphism $F': M \rightarrow M$ sending $p$ to $p'$, so restricting to $M \setminus \{p\}$ gives a homeomorphism $F: M \setminus \{p\} \rightarrow M \setminus \{p'\}$. My hope was to choose a smaller coordinate ball $B$ such that $p \in B \subseteq \bar{B} \subseteq U \cap F^{-1}(U')$, with a loop $f: I \rightarrow U$ travels once around the boundary of $B$. Now, since $B$ is just a coordinate ball inside a larger coordinate ball $U$, $U \setminus \{p\}$ deformation retracts onto $\bar{B} \setminus \{p\}$, so I believe $[f]$ generates $\pi_1(U\setminus \{p\})$. However, I am having trouble showing rigorously that $[F \circ f]$ generates $\pi_1(U' \setminus \{p'\})$. If I could show that $U' \setminus \{p'\}$ deformation retracts onto $F(\bar{B} \setminus \{p\})$, then this would show the desired result by noting that the homeomorphism $F$ induces a fundamental group isomorphism onto the image, then by noting that the inclusion $F(\bar{B} \setminus \{p\}) \hookrightarrow U' \setminus \{p'\}$ is a homotopy equivalence. But I could not find a way to show this; in particular I don't have that this image is convex, so I don't know how to define a deformation retraction.
Any hints on how to approach this problem would be much appreciated.