Support Device Rotation

Fix Issue #1
* Keep the progress bar in place after device rotates
* Resize mask after device rotates