Special code to handle loading background images with the right aspect ratio.