Add an extension to each inline image file that matches the original.