update index and images