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: