Modifications to template. Creates HTML and image files for the page. Image created every 50 iterations to show progress of optimization.