buggy background-size calculation fix