Move slideshow image scale logic into new_slideshow.js and add scaling to lazy-loading logic