added reset and empty set in fromDataURL