use jpeg in toDataURL()