index file modified for images