Update scaling and centering methods

Now matches CSS background-size: cover