Remove specific calls to rgb[:r] etc from calculate_xyz