added reset and empty set to fromDataURL