fixed the loader image asse not being properly deallocated or reallocated (if called multiple times)