add image and update index,hmtl