Resizing background image on the fly to take up less memory