minor changes to index and image optimization