Fixing image embedding bugs.