you can adjust the thickness you erase once you are done with erasing click on the colors and the pencil will be back
credits to @swasticodes for telling me how to use pen tool