index updated for image viewer

script eddited, index edited