fix form reset
mild refactoring and web optimize photos