rotate gesture, element hierarchy, image references and locate timeouts

The most significant changes are better defined element class hierarchy and semantics for image references. Methods for locating images and text require more consideration.