I encountered a similar issue where, in my case, all images were displayed correctly in development mode, but they disappeared in the production build. I discovered that this was due to the length of the filenames. Production builds seem to have some limitations in this regard.