Fix crashing when background image is not specified.