adds img, index file