Delete unnecessary images