Add z-ordering to entity drawing