Introduced an IE-safe way of checking image load

Adapted slideshow's code to use the new way of checking whether or not
an image is loaded. This seems to have many advantages.