fix bug abount importing images