now it creates the html file itself and put the resources files in the thumbnails dir too