Added an error catch to all instances of canvas.toDataUrl, to properly report intermittent failures seen in Chrome.
Addressed freedback from Ken
Merge pull request #680 from toji/to_data_url_error

Added an error catch to all instances of canvas.toDataUrl