sampleImageis the way to go. Unlike Martin, I think it's not too difficult to apply. However, I do see issues -
(1) which part of the underlying video do you want to sample?
(2) how will the logos transition from one state to the other?
You'll need to clear this up before looking at a coding solution. Lastly, with Expressions, instead of Scripting, you can save the Expression as part of a Preset (FFX) which I feel is more efficient and easier for most users to apply.