window resize handling taken back out of Photosphere again, some applications might not want to use it, leave it up to the application