Clean up width/height assignment in addFrame
Fix a bug where i could be undefined in spawnWorker
0.1.3