Fixing this to show the loading image when loading files from the local machine.