Fixed bug regarding loading background image