Fix for precompiling images in production.