Fixed a bug with avatar saving.

Forgot to remove a second declaration for saveCanvas.