Implemented avatar upload and improved profile update