Automatically select resolution of next photo based on browser window width.

Needs improvement!