Tiled Gallery: Extracted original-width and original-height attribute setting out of the resize function, and moved the call from resize to the constructor, since there is no need to see if the attributes are set in every resize call.