bugfix avatar upload

+ Fixed a bug preventing people from uploading avatar images