saveCanvas() figures out file extension

re: https://github.com/lmccart/p5.js/pull/361