Support quality argument in CanvasElement.toDataURL method.

For certain image types (like image/jpeg) user can specify a number between 0.0 and 1.0 as a second argument, which indicates an image quality.