Fixed some bugs regarding background image.