modified avatar uploader