add image upload function and html