set window width and height before we load the first images so we get the right crop. closes #261