fixed bug which so far only occurred with low frame rates
refactoring
HTML5 UI params match py UI
--export-stills back on track
updated TODO