Only record a new frame if it's different than previous one