If canvas passed to library is too big  toDataURL returns “data:,” even ...

...if canvas is empty. It’s because of too less memory on iPad/iPhone. New method setup maximum width & height for device.