Ciao!
I am also looking for a similar solution.
But then how do you associate the chosen avatar with the profile picture?
To save the choice and update the profile, the button always wants the ‘Image Picker’ element.
I have a custom solution. The user clicks on the ‘refresh image’ icon and it takes him to choose either a photo from his album or a collection of preloaded avatars.