Added caching to the replacementImages