This diff has two small improvements for factoring out the redundant logic for saving an image avatar. The first improvement makes the callback in `useUploadSelectedMedia` return a `ImageAvatarDBContent` instead of a `string`. The second improvement factors out the update image avatar logic into its own function
Depends on D7622