Fixed background scaling script