Fixing some bugs with background sizing