Honor CSS background-size: cover; in container

When using background-size: cover the image dimensions are not correctly set. Here is my patch to fix this issue and scroll scaled backgrounds.