Fixed regex to replace images with inline ones.