Fix loader gif glitch

Current code doesn't render the loader gif, shows broken image. Fixed that.