added bgimg support to level editor