Substitute Aron Gunnarsson headed home the winner for Championship leaders Cardiff City, who beat Crystal Palace 2-1 on Boxing Day.