delete of unnecessary image