Fix filter chain memory leak and timing issue.

It seems that a new chain element should not try to draw on a finished
stream. Also the logo file didn't respect global trim settings.