Dynamic Flash resizing

Fixes #270.
Fixes #354.
v2.0.0-beta.1