Added callback support for avatar upload