refactory user info page code & add upload image preview