Fix to renaming of inline images