add image upload function and change loginView call