Added "bg" option not to append background layer element