layer.toDataURL() now directly returns layer canvas data url if position and size are not specificed.  updated unit tests and docs