change for BitmapFronEnd regarding new embedding system in Haxe