adding index and image directory