Properly scale the background image