Fix #162
Fix #180

Add `__init__` parameters for initial resolution and framerate.