adding index html to images