Modified file I/O for frame by frame color comparison