Bug fixes for MaxInRow
RGB2Rot BugFix