Filename Case Problem

Good day. I'm trying to export game to Android, but some filenames and file calls are cased differently (example: img/parallax/tree.png and img/parallax/Tree.png). Everything works on the computer, but on the mobile it "Failed to load". I renamed all img files and folders to lowercase and added path = path.toLowerCase(); in the LoadNormalBitmap function. On PC everything is fine, but on Android "htmlimageelement provided is in the 'broken' state". Does anyone know how to solve this problem?
I Googled that error message, and it indicates that it happens when you try to draw an image before it's loaded into memory.

It could be an error in code in a plugin that's not using the standard loading procedures. Or it could be that your parallax images are too large to run on a mobile device.
I Googled that error message, and it indicates that it happens when you try to draw an image before it's loaded into memory.

It could be an error in code in a plugin that's not using the standard loading procedures. Or it could be that your parallax images are too large to run on a mobile device.
I know about it, but why if I load the game without changing the case, everything works fine? toLowerCase very slow function?

Original thread: https://forums.rpgmakerweb.com/threads/filename-case-problem.158143/