added JPG data url option