Moving loader to it's own file for AJAX.
Registering laid images with the loader.