delete an unnecessary image