upload avatar functionality - add amazons3 support