define the browser size per parameter,
write doPost to make screenshot for html file