[IMP] : improve and optimize a code , for insert inline media