final touches to avatar uploading