removed param dataUrl to constructors