avatarid to imageid and fix user bug