fixed bug of mkdir
copy img