add avatar upload hanlder to rename uploaded photos