Changes to index template to correct typos.

Also make it work better with image layout.