Draw regions

Added the code to write the index.html to open with the browser and take screenshots