fixes #20. Added code to update width and height
Merge branch 'master' of https://github.com/lhoang29/mimry