Fixed errors. Updated MovieWriter::addFrame method.

Doesn't work yet, but it's one step closer.