canvas dynamic dimensions added