update index with new img tag