init images and index page