To solve this problem, I use this procedure:
1 generate a list(array) of all images id and its parameters
2 generate a list(array) of all frequently used images (which are often used in lua script)
3 instead of removing frequently used image I make it transparent.
4 in moment of creating and deleting large numbers of images, I add timers to make it a long-acting
5 generate a global timer for organizing changes(movement,opacity,...) for lists(arrays) of images with same mode.