add img file and delete the unuse file