Trigger iframe resize on image load

Since image loads do not trigger any DOM changes, the iframe content size change is not detected by the library. This fix adds a image load listener to each image when it is added to the DOM.