fixing image reference replacer