Added main background drawing functions.