refactoring webpics html templates and css.