change PIL to pillow to support avatar upload function