Add support for uploading avatar images

Fixes #33