Remove statements related to toDataURL