delete unnecessary images