The p finger (thumb) usually picks the 6th, 5th and 4th strings. Pick with the lower side of your thumb as shown in the second photograph. Pick with a downward motion and keep the thumb rigid, i.e., do not bend it like you do when picking with your fingers.
Now try this example which combines the use of the thumb and fingers. Take it slowly at first and practice each bar separately at first.