updates to avatar upload process