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 IIFE for the `dispatchActionPromise` into it's own function