Fixed Image Click Handler Bug

Fix bug where click handler would not be apply to an image if inserted
into anything but the body.  Now code waits for all images to load
before applying click handlers.