On top of my head maybe you can "tag" a specific frame by putting in an imagepoint on it, give it a name, and use it as a tag via an event that loops through imagepoints of frame and check if it exists.