[TASK] Fallback for waitForImagesToLoad callback and IE bugfix

* Refactors custom onload function for images to fix buggy IE behaviour with cached images
* Hides the loading animation after 4 seconds, no matter if the callback of waitForImagesToLoad has been fired

Resolves #16