minimization bug fix

To fix the minimization problem had to add a canvas to the frame.
Now need to make auto dimension adjustment to the canvas every time the
main frame dimension is changed
Revert "minimization bug fix"

This reverts commit 48e3014e788a0a8e10633c0dbf72509e4528dc2f.
Final minimization Fix
ETC minimization fix
Merge pull request #1 from GrimSmiler/master

WIth Ilya FIxes and with stackoverfrlow help