update class uploadPic