Added a bit of a delay and a call to autoResize after inserting the image.