Added entity z index, foreground and background rendering and canvas arangements.