Fix capybara resize & reset to work with poltergeist & selenium