added avatar upload handling to member