If you don't want to set any attribute, only want to change the quality of image you can pass null and empty array or no array at all. That will just change the quality of image and no attribute are added to the output.
Eg: `html('title','jpeg','',20))` or  `html('title','jpeg',NULL,20))` or `html('title','jpeg',array(),20))`