Update funtion add avatar for user