Fix calculation of background-size horizontal dimension. Fixes issue #253