improve insert image path