Image insertion bug fixed