Forum rules - please read before posting, it can save you a lot of time.
Can it be so that you create entity and set sprite to it, and then delete entity? But the loaded sprite it remains in memory?.
try to create the .entity file and add path to sprite there, then load this file.