updated index deleted old imgs