z-sort descending by width,height

Change-Id: I95a3b513bf739f88dab0fe2bcbb7ce6052065bd7
z-order by color data instead of rgb values

Change-Id: Idae5e6fbcffa7f2c370d4001d5aa868ff471cb25