Fixed issue with image not inserting correctly