Replace images in precompile