Tiled Gallery: Moved image height and width attributes to a style attribute so that jQuery width and height accessors can access them before the image is loaded.
Tiled Gallery: Using jQuery foreach instead of standard foreach for backwards compatibility.