There shouldn’t be any difference besides the memory usage, which would be higher when you are preloading all images.
Besides that, your code is unfortunately not executable, so that I cannot run or debug it, but good to hear it’s working now.