Do not create Graphics canvas element if the bounds width or height are 0