refactored avatar uploader
Merge pull request #392 from CalvinFernandez/fix-user-upload

refactored avatar uploader