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

Needs improvement!
Improved Javascript to decide next/prev image sizes.