Update Profile Picture

I have an application that allows users to select an image from the gallery of their device or camera and I want users to be able to update their profile picture. How can this be done?

Thank you

CAPTURA

image