use toDataURL method of canvas Object to create a image out of the design