renaming and replacing images in rst files