first fixes for rectangle rendering

Change-Id: I7705f8fd0472ad482d2292438d264eb0b641758e
does not need to be a member variable

Change-Id: Ib5b61f724c9df974d02875cde76079094cb59c38
finally fix rectangle rendering

Change-Id: Iaf0467ce4d9eb12ac3e84c2f1059b859ee9c4de1
fix z ordering problems

Change-Id: Ia1c9ea521029f871c8b0bdfd078d986d3e0f40e8