change uploading user avatar
update code by PSR2 standard