Replaces all references to frameNumberToData with util_LoadWholeFrame and removes redundant code.