images now scale up
The previous, CSS-based solution would scale images down and horizontally center them, but this JavaScript solution also handles scaling images up.  It also vertically centers images and makes toast.