really dirty fix for a bug which occurs when you try to embed an image