1. A method of modifying graphics commands representative of a visual tree comprising: receiving from the graphics commands in a graphics stream; opening the graphics stream; modifying the graphics stream into a modified graphics stream; and passing the modified graphics stream to a composition engine that creates a modified composition tree analogous to the visual tree.