used stage.toDataURL() instead of stage.toImage()