Migrate old legacy code to the draw mamager/object mode. The old legacy
version did not work with wireframe. By migrating the code
to modern draw manager code we have mode control on the drawing process.
Still background images do not work with OIT, the cause seems to be that the alpha of transparent pixels ZERO and are treated as background pixels.
This patch does not solve the OIT .