max width and max height added in canvas creation
Revert "max width and max height added in canvas creation"

This reverts commit 1bc09d030369f140ab677aa04d924a42baccdd3c.
Revert "Revert "max width and max height added in canvas creation""

This reverts commit 471567d37053da6b1124d219e98943f7a3e95e45.