dealing with avatar upload.