There are a number of ways to do this. Here’s one:
You can convert each image to a Base64 string. Put them all into an array, and save to a separate module. Now you have 1 file instead of 2500.
Here’s a bit more info:
https://blog.appstudio.dev/2011/03/images-in-strings-and-base64/