Initial zoom factor should clearly be derived from min dimension (#520)
Add some ultra ugly workaround to get unmazimized state right
Restore ClientSize correctly instead of restoring it as Size (#520)